Skip to content

Commit b2f886b

Browse files
committed
rm stdbool.h include for WIN32 compiler
1 parent 70c6d6c commit b2f886b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/ninja/windninja.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
#endif //WIN32 && WINDNINJA_EXPORTS
5252
#endif //WINDNINJADLL_EXPORT
5353

54+
#ifdef WIN32
55+
#define true 1
56+
#define false 0
57+
#else
58+
#include <stdbool.h>
59+
#endif
60+
5461
#ifndef TRUE
5562
#define TRUE 1
5663
#endif
@@ -62,8 +69,6 @@
6269
WN_C_START
6370

6471
#include <stdlib.h>
65-
//#include <stdint.h>
66-
#include <stdbool.h>
6772

6873
//Use structs instead of void * for type checking by C compilier
6974
struct NinjaArmyH;

0 commit comments

Comments
 (0)