diff options
Diffstat (limited to 'dep/CascLib/src/CascPort.h')
-rw-r--r-- | dep/CascLib/src/CascPort.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dep/CascLib/src/CascPort.h b/dep/CascLib/src/CascPort.h index 419384045cc..9a136a3385c 100644 --- a/dep/CascLib/src/CascPort.h +++ b/dep/CascLib/src/CascPort.h @@ -13,9 +13,7 @@ #define __CASCPORT_H__ #ifndef __cplusplus - #define bool char - #define true 1 - #define false 0 + #include <stdbool.h> #endif //----------------------------------------------------------------------------- @@ -23,6 +21,11 @@ #if !defined(CASCLIB_PLATFORM_DEFINED) && (defined(_WIN32) || defined(_WIN64)) + // Make sure that headers are only included once in newer SDKs + #if defined (_MSC_VER) && (_MSC_VER >= 1020) + #pragma once + #endif + // In MSVC 8.0, there are some functions declared as deprecated. #define _CRT_SECURE_NO_DEPRECATE #define _CRT_NON_CONFORMING_SWPRINTFS @@ -271,6 +274,10 @@ #define ERROR_INDEX_PARSING_DONE 1010 #endif +#ifndef ERROR_REPARSE_ROOT +#define ERROR_REPARSE_ROOT 1011 +#endif + #ifndef _countof #define _countof(x) (sizeof(x) / sizeof(x[0])) #endif |