Fix stdbool clash with mongoose.h
This commit is contained in:
parent
f637a2f590
commit
bb8d2dc2a7
2 changed files with 14 additions and 1 deletions
|
@ -231,7 +231,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
|
||||||
#if _MSC_VER < 1700
|
#if defined(_MSC_VER) && (_MSC_VER < 1700)
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
#else
|
#else
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
13
src/mongoose_bool.patch
Normal file
13
src/mongoose_bool.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/include/mongoose.h b/include/mongoose.h
|
||||||
|
index b885270..5166d1a 100644
|
||||||
|
--- a/include/mongoose.h
|
||||||
|
+++ b/include/mongoose.h
|
||||||
|
@@ -231,7 +231,7 @@
|
||||||
|
#include <windows.h>
|
||||||
|
#include <process.h>
|
||||||
|
|
||||||
|
-#if _MSC_VER < 1700
|
||||||
|
+#if defined(_MSC_VER) && (_MSC_VER < 1700)
|
||||||
|
typedef int bool;
|
||||||
|
#else
|
||||||
|
#include <stdbool.h>
|
Loading…
Add table
Add a link
Reference in a new issue