]> granicus.if.org Git - mutt/commitdiff
remove <stdbool.h> and use "1" instead of "true". closes #3657
authorMichael Elkins <me@sigpipe.org>
Sat, 19 Oct 2013 18:23:20 +0000 (11:23 -0700)
committerMichael Elkins <me@sigpipe.org>
Sat, 19 Oct 2013 18:23:20 +0000 (11:23 -0700)
see #3642 for the change that caused this bug.

crypt-gpgme.c

index 3a8fb722620fe92197a064cf187f3b2e18c59575..5181edb09ecc26f071c7c29106eca43cd52ac5b5 100644 (file)
@@ -43,7 +43,6 @@
 #include <sys/stat.h>
 #include <errno.h>
 #include <ctype.h>
-#include <stdbool.h> /* for "true" */
 
 #include <gpgme.h>
 
@@ -4367,7 +4366,8 @@ static void init_common(void)
 #ifdef ENABLE_NLS
     gpgme_set_locale (NULL, LC_MESSAGES, setlocale (LC_MESSAGES, NULL));
 #endif
-    has_run = true;
+    has_run = 1; /* note use of 1 here is intentional to avoid requiring "true"
+                   to be defined.  see #3657 */
   }
 }