aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2025-11-24 12:29:35 +0100
committerLadislav Zezula <zezula@volny.cz>2025-11-24 12:29:35 +0100
commit6a18fa77feb62ceca1200e5d84611ab1fc98063f (patch)
treeeaa5b78fef93faf919e8471f5f6b410911a1bf1c /src
parentd6f664519eff58a09c88b0eee292cce8747bad23 (diff)
#included stdbool.h when necessary
Diffstat (limited to 'src')
-rw-r--r--src/StormPort.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/StormPort.h b/src/StormPort.h
index 1ce1d18..61affcd 100644
--- a/src/StormPort.h
+++ b/src/StormPort.h
@@ -27,12 +27,9 @@
#ifndef __STORMPORT_H__
#define __STORMPORT_H__
-// This is probably no longer needed. If someone uses a platform which doesn't support 'bool' natively, let me know.
-//#ifndef __cplusplus
-// #define bool char
-// #define true 1
-// #define false 0
-//#endif
+#if !defined(__cplusplus) && !defined(_MSC_VER)
+ #include <stdbool.h>
+#endif
//-----------------------------------------------------------------------------
// Defines for Windows