Skip to content

Commit

Permalink
Fix stdbool clash with mongoose.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Nov 8, 2019
1 parent f637a2f commit bb8d2dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/mongoose.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
13 changes: 13 additions & 0 deletions src/mongoose_bool.patch
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit bb8d2dc

Please sign in to comment.