Merge pull request #83 from sjones608/cplusplus_bool

Don't typedef bool if compiling with C++
This commit is contained in:
Yo-An Lin 2015-10-01 09:56:22 +08:00
commit 031a37514e

View file

@ -9,7 +9,7 @@
#define DEFINE_H #define DEFINE_H
#include <stdbool.h> #include <stdbool.h>
#ifndef bool #if !defined(bool) && !defined(__cplusplus)
typedef unsigned char bool; typedef unsigned char bool;
#endif #endif
#ifndef FALSE #ifndef FALSE