Closed fatcerberus closed 8 years ago
Can I wrap this in an #ifdef
? I'm not sure how this is supposed to work.
Another idea is just to #include <stdbool.h>
if we can assume it exists.
I believe VS2013 and later includes stdbool.h
. I'd recommend:
#if _MSC_VER >= 1800
#include <stdbool.h>
#else
typedef enum { false, true } bool;
#endif
Sounds good. Did you want to send a PR?
Sure. :)
I was unable to build dukluv from a fresh checkout using Visual Studio 2015. After running CMake and opening the resulting solution file, I get the following syntax error when attempting to compile it:
On this line:
I believe VS2013 and later include C99
bool
via stdint.h, so that's likely the cause of this.