We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5af88b commit 12ad43eCopy full SHA for 12ad43e
2 files changed
src/base/CMakeLists.txt
@@ -7,10 +7,11 @@ set(SC_BASE_SOURCES
7
)
8
9
set(SC_BASE_HDRS
10
- sc_benchmark.h
11
- sc_memmgr.h
12
- sc_getopt.h
13
- sc_trace_fprintf.h
+ sc_benchmark.h
+ sc_memmgr.h
+ sc_getopt.h
+ sc_trace_fprintf.h
14
+ sc_stdbool.h
15
16
17
if(MINGW OR MSVC OR BORLAND)
src/base/sc_stdbool.h
@@ -0,0 +1,12 @@
1
+#ifndef SC_STDBOOL_H
2
+#define SC_STDBOOL_H
3
+
4
+#ifdef _WIN32
5
+ typedef int bool;
6
+# define false 0
+# define true 1
+#else
+# include <stdbool.h>
+#endif
+#endif /* SC_STDBOOL_H */
0 commit comments