From 57fb9abd4355fae4b923403f4bcf51013d16e2c2 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sat, 15 Apr 2023 14:07:01 +0200 Subject: Use #cmakedefine01 for system capability checks and reply #ifdev HAVE_ with #if HAVE_ --- src/system.hh.in | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/system.hh.in') 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 #endif -#if defined(HAVE_GETPWUID) || defined(HAVE_GETPWNAM) +#if HAVE_GETPWUID || HAVE_GETPWNAM #include #endif -#ifdef HAVE_IOCTL +#if HAVE_IOCTL #include #endif -- cgit v1.2.3