Skip to content

Commit 53d3cc5

Browse files
committed
[VCRUNTIME] stdint.h: Update include guard for MIN/MAX macros
Include MIN/MAX macros for C++11 and above without the need to define __STDC_LIMIT_MACROS. This is what mingw uses.
1 parent e5633f6 commit 53d3cc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/include/vcruntime/stdint.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ __MINGW_EXTENSION typedef long long intmax_t;
6969
__MINGW_EXTENSION typedef unsigned long long uintmax_t;
7070

7171
/* 7.18.2 Limits of specified-width integer types */
72-
#if !defined ( __cplusplus) || defined (__STDC_LIMIT_MACROS)
72+
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \
73+
defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
7374

7475
/* 7.18.2.1 Limits of exact-width integer types */
7576
#define INT8_MIN (-128)

0 commit comments

Comments
 (0)