diff options
author | Russell Belfer <rb@github.com> | 2013-08-22 14:45:10 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-08-22 14:45:10 -0700 |
commit | b6ac07b51771641f3ae994c17f361fbd8bec36ef (patch) | |
tree | 88fb61ce2e4503621c6746e919343c05d5d7e311 /src/cc-compat.h | |
parent | eb868b1e98d7cea8796f9b92be04843a7f819e5e (diff) | |
download | libgit2-b6ac07b51771641f3ae994c17f361fbd8bec36ef.tar.gz |
Trying to fix Win32 warnings
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r-- | src/cc-compat.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h index a5e4ce17e..37f1ea81e 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -54,8 +54,12 @@ #if defined (_MSC_VER) typedef unsigned char bool; -# define true 1 -# define false 0 +# ifndef true +# define true 1 +# endif +# ifndef false +# define false 0 +# endif #else # include <stdbool.h> #endif |