replace:wscript - change the "bool" checks to be compatible with more platforms
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 28 Nov 2010 11:28:03 +0000 (12:28 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 28 Nov 2010 15:38:16 +0000 (16:38 +0100)
- If the type was found then we are fine and define "HAVE_BOOL"
- Othewise we substitute it in "replace.h" as "_Bool" or if not possible as "int"
- This prevents lot of warnings on platforms where we don't have a "bool" type as Tru64
- The length check for "bool" is not really useful and therefore removed

lib/replace/wscript

index 8b5980758d3b06237b85771aac180f61872b6b4b..f6a9befc0d82a94510287da1aa401f8cf6d56175 100644 (file)
@@ -91,7 +91,7 @@ def configure(conf):
     conf.CHECK_TYPE('volatile int', define='HAVE_VOLATILE')
     conf.CHECK_TYPE('uint_t', 'unsigned int')
 
-    conf.CHECK_SIZEOF('bool char int "long long" long short size_t ssize_t')
+    conf.CHECK_SIZEOF('char int "long long" long short size_t ssize_t')
     conf.CHECK_SIZEOF('int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t')
     conf.CHECK_SIZEOF('void*', define='SIZEOF_VOID_P')
     conf.CHECK_SIZEOF('off_t dev_t ino_t time_t')