summaryrefslogtreecommitdiff
path: root/src/system.hh.in
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-15 14:07:01 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2023-04-15 14:28:29 +0200
commit57fb9abd4355fae4b923403f4bcf51013d16e2c2 (patch)
treebd672d22d3236a2a51a09dc141f6680c74063cea /src/system.hh.in
parentfac2c16d1237fdeccb4017268f3068254cbde573 (diff)
downloadfork-ledger-57fb9abd4355fae4b923403f4bcf51013d16e2c2.tar.gz
fork-ledger-57fb9abd4355fae4b923403f4bcf51013d16e2c2.tar.bz2
fork-ledger-57fb9abd4355fae4b923403f4bcf51013d16e2c2.zip
Use #cmakedefine01 for system capability checks
and reply #ifdev HAVE_ with #if HAVE_
Diffstat (limited to 'src/system.hh.in')
-rw-r--r--src/system.hh.in30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index e74dc774..35253962 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -55,23 +55,23 @@
#define Ledger_VERSION_PRERELEASE "@Ledger_VERSION_PRERELEASE@"
#define Ledger_VERSION_DATE @Ledger_VERSION_DATE@
-#define HAVE_GETTEXT @HAVE_GETTEXT@
+#cmakedefine01 HAVE_GETTEXT
-#cmakedefine HAVE_EDIT
-#cmakedefine HAVE_GETPWUID
-#cmakedefine HAVE_GETPWNAM
-#cmakedefine HAVE_IOCTL
-#cmakedefine HAVE_ISATTY
+#cmakedefine01 HAVE_EDIT
+#cmakedefine01 HAVE_GETPWUID
+#cmakedefine01 HAVE_GETPWNAM
+#cmakedefine01 HAVE_IOCTL
+#cmakedefine01 HAVE_ISATTY
-#define HAVE_UNIX_PIPES @HAVE_UNIX_PIPES@
+#cmakedefine01 HAVE_UNIX_PIPES
-#define HAVE_BOOST_PYTHON @HAVE_BOOST_PYTHON@
-#define HAVE_GPGME @HAVE_GPGME@
-#define HAVE_BOOST_REGEX_UNICODE @HAVE_BOOST_REGEX_UNICODE@
-#define HAVE_BOOST_NOWIDE @HAVE_BOOST_NOWIDE@
+#cmakedefine01 HAVE_BOOST_PYTHON
+#cmakedefine01 HAVE_GPGME
+#cmakedefine01 HAVE_BOOST_REGEX_UNICODE
+#cmakedefine01 HAVE_BOOST_NOWIDE
-#define DEBUG_MODE @DEBUG_MODE@
-#define NO_ASSERTS @NO_ASSERTS@
+#cmakedefine01 DEBUG_MODE
+#cmakedefine01 NO_ASSERTS
#define DOCUMENT_MODEL 0
#define REDUCE_TO_INTEGER 0
@@ -113,11 +113,11 @@
#else
#include <unistd.h>
#endif
-#if defined(HAVE_GETPWUID) || defined(HAVE_GETPWNAM)
+#if HAVE_GETPWUID || HAVE_GETPWNAM
#include <pwd.h>
#endif
-#ifdef HAVE_IOCTL
+#if HAVE_IOCTL
#include <sys/ioctl.h>
#endif