Don't typedef bool if compiling with C++

If using the C++ wrapper provided by r3.hpp, you get a compiler
error when r3_define.h tries to typedef bool as C++ already has
native bool type.  Modified the guard around this typedef
to include a check for C++ compilation (!defined(__cplusplus)).
This commit is contained in:
Steve Jones 2015-09-28 11:42:45 -05:00
parent eb2ff77e5c
commit d12296af59

View file

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