lib:util: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 13:01:20 +0000 (14:01 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:22 +0000 (23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/util/charset/charset_macosxfs.c
lib/util/charset/tests/iconv.c

index 24e21fd6d2cff7a18aff522c0fc1bcef97d4cb9c..97a366a1532db44fd744a6592eca3d233ee05140 100644 (file)
 /*
  * See if autoconf has found us the internal headers in some form.
  */
-#if HAVE_COREFOUNDATION_CFSTRINGENCODINGCONVERTER_H
+#if defined(HAVE_COREFOUNDATION_CFSTRINGENCODINGCONVERTER_H)
 #      include <CoreFoundation/CFStringEncodingConverter.h>
 #      include <CoreFoundation/CFUnicodePrecomposition.h>
 #      define USE_INTERNAL_API 1
-#elif HAVE_CFSTRINGENCODINGCONVERTER_H
+#elif defined(HAVE_CFSTRINGENCODINGCONVERTER_H)
 #      include <CFStringEncodingConverter.h>
 #      include <CFUnicodePrecomposition.h>
 #      define USE_INTERNAL_API 1
index 30161d3d8edec8202f565eb446ad711379f35c71..3733c3c6b66c79bb230c8f35ce9fa8c7c15ea580 100644 (file)
@@ -30,7 +30,7 @@
 #include "torture/local/proto.h"
 #include "talloc.h"
 
-#if HAVE_NATIVE_ICONV
+#ifdef HAVE_NATIVE_ICONV
 
 static bool iconv_untestable(struct torture_context *tctx)
 {