diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-02-17 00:13:34 +0100 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-03-06 00:43:10 +0100 |
commit | 1a48112342932e9fcd45a1ff5935f1c9c53b83d1 (patch) | |
tree | fbb18cfe64e65025c6e1790972d1a106eea4cc54 /src/cc-compat.h | |
parent | 45d387ac78bcf3167d69b736d0b322717bc492d4 (diff) | |
download | libgit2-1a48112342932e9fcd45a1ff5935f1c9c53b83d1.tar.gz |
error-handling: References
Yes, this is error handling solely for `refs.c`, but some of the
abstractions leak all ofer the code base.
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r-- | src/cc-compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h index 3df36b61f..507985daa 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -50,4 +50,12 @@ # pragma warning ( disable : 4127 ) #endif +#if defined (_MSC_VER) + typedef unsigned char bool; +# define true 1 +# define false 0 +#else +# include <stdbool.h> +#endif + #endif /* INCLUDE_compat_h__ */ |