Guard COMMIT and commit.h usage behind HAVE_COMMIT
This commit is contained in:
committed by
Paul Beckingham
parent
12809fd0bf
commit
6a9f6a9c82
@@ -35,7 +35,9 @@
|
||||
#include <i18n.h>
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
#ifdef HAVE_COMMIT
|
||||
#include <commit.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBGNUTLS
|
||||
#include <gnutls/gnutls.h>
|
||||
@@ -136,7 +138,9 @@ int CmdDiagnostics::execute (std::string& output)
|
||||
|
||||
// Build date.
|
||||
<< " " << STRING_CMD_DIAG_BUILT << ": " << __DATE__ << " " << __TIME__ << "\n"
|
||||
#ifdef HAVE_COMMIT
|
||||
<< " " << STRING_CMD_DIAG_COMMIT << ": " << COMMIT << "\n"
|
||||
#endif
|
||||
<< " CMake: " << CMAKE_VERSION << "\n"
|
||||
<< " " << STRING_CMD_DIAG_CAPS << ":"
|
||||
#ifdef HAVE_LIBPTHREAD
|
||||
|
||||
@@ -30,7 +30,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <ViewText.h>
|
||||
#ifdef HAVE_COMMIT
|
||||
#include <commit.h>
|
||||
#endif
|
||||
#include <CmdVersion.h>
|
||||
#include <text.h>
|
||||
#include <i18n.h>
|
||||
|
||||
Reference in New Issue
Block a user