diff options
Diffstat (limited to 'src/StormPort.h')
| -rw-r--r-- | src/StormPort.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StormPort.h b/src/StormPort.h index f00afd6..61affcd 100644 --- a/src/StormPort.h +++ b/src/StormPort.h @@ -27,10 +27,8 @@ #ifndef __STORMPORT_H__ #define __STORMPORT_H__ -#ifndef __cplusplus - #define bool char - #define true 1 - #define false 0 +#if !defined(__cplusplus) && !defined(_MSC_VER) + #include <stdbool.h> #endif //----------------------------------------------------------------------------- @@ -54,7 +52,9 @@ #include <stdio.h> // Suppress definitions of `min` and `max` macros by <windows.h>: + #ifndef NOMINMAX #define NOMINMAX 1 + #endif #include <windows.h> #include <wininet.h> |
