From 4e89eac8dd979b7da44fd4c8a4a469f384dd5ff5 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <lsm@cesanta.com> Date: Fri, 21 Feb 2020 14:22:23 +0000 Subject: [PATCH] Integrate cesanta/dev#1074 - Fix typedef bool for MSC PUBLISHED_FROM=f52fe15edd617d9f1ba2aa4051c116e79671554d --- mongoose.h | 2 +- src/common/platforms/platform_windows.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.h b/mongoose.h index f768c8d93..de7eeab32 100644 --- a/mongoose.h +++ b/mongoose.h @@ -228,7 +228,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> diff --git a/src/common/platforms/platform_windows.h b/src/common/platforms/platform_windows.h index 3b300bd6a..f2eb95ae8 100644 --- a/src/common/platforms/platform_windows.h +++ b/src/common/platforms/platform_windows.h @@ -50,7 +50,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> -- GitLab