]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: define FALSE to be (!1)
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Jun 2016 13:54:38 +0000 (16:54 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 6 Jun 2016 12:37:05 +0000 (15:37 +0300)
This allows the patched clang to treat FALSE as a boolean expression.

src/lib/macros.h

index 247f4baf83a8ae6236dad763773fe1d333b03456..84452073749ce027d49162d7d893582cd4dae85f 100644 (file)
@@ -8,7 +8,7 @@
 #endif
 
 #ifndef FALSE
-#  define FALSE (0)
+#  define FALSE (!1)
 #endif
 
 #ifndef TRUE