Fix stdbool clash with mongoose.h

This commit is contained in:
Christian W. Zuckschwerdt 2019-11-08 22:15:37 +01:00
parent f637a2f590
commit bb8d2dc2a7
2 changed files with 14 additions and 1 deletions

View file

@ -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>

13
src/mongoose_bool.patch Normal file
View 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>