From bb8d2dc2a7de14ebfefe586b5b740551213735e2 Mon Sep 17 00:00:00 2001 From: "Christian W. Zuckschwerdt" Date: Fri, 8 Nov 2019 22:15:37 +0100 Subject: [PATCH] Fix stdbool clash with mongoose.h --- include/mongoose.h | 2 +- src/mongoose_bool.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/mongoose_bool.patch diff --git a/include/mongoose.h b/include/mongoose.h index b885270ac..5166d1a7d 100644 --- a/include/mongoose.h +++ b/include/mongoose.h @@ -231,7 +231,7 @@ #include #include -#if _MSC_VER < 1700 +#if defined(_MSC_VER) && (_MSC_VER < 1700) typedef int bool; #else #include diff --git a/src/mongoose_bool.patch b/src/mongoose_bool.patch new file mode 100644 index 000000000..5f7b40a05 --- /dev/null +++ b/src/mongoose_bool.patch @@ -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 + #include + +-#if _MSC_VER < 1700 ++#if defined(_MSC_VER) && (_MSC_VER < 1700) + typedef int bool; + #else + #include