Created
February 23, 2009 00:10
-
-
Save miyagawa/68699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6d703dac38b0257eb066564ae06e0e1adb1fa021 Mon Sep 17 00:00:00 2001 | |
From: Tatsuhiko Miyagawa <miyagawa@bulknews.net> | |
Date: Sun, 22 Feb 2009 15:40:35 -0800 | |
Subject: [PATCH] Make bool type work with C99 (OS X Leopard) | |
--- | |
ToolBox.h | 3 ++- | |
1 files changed, 2 insertions(+), 1 deletions(-) | |
diff --git a/ToolBox.h b/ToolBox.h | |
index 08b2cee..2eb8a6d 100644 | |
--- a/ToolBox.h | |
+++ b/ToolBox.h | |
@@ -89,7 +89,8 @@ typedef Z_longword *Z_longwordptr; | |
#ifdef MACOS_TRADITIONAL | |
#define boolean Boolean | |
#else | |
- typedef enum { false = FALSE, true = TRUE } boolean; | |
+ #include <stdbool.h> | |
+ typedef bool boolean; | |
#endif | |
#endif | |
-- | |
1.6.1.3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment