https://git.reactos.org/?p=reactos.git;a=commitdiff;h=53d3cc5f3fda8ab39c1ca…
commit 53d3cc5f3fda8ab39c1ca6e12a1fecd2acacb224
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Fri Oct 11 14:53:52 2024 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Nov 16 20:01:49 2024 +0200
[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.
---
sdk/include/vcruntime/stdint.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sdk/include/vcruntime/stdint.h b/sdk/include/vcruntime/stdint.h
index 3246acf00bf..a73ded330a8 100644
--- a/sdk/include/vcruntime/stdint.h
+++ b/sdk/include/vcruntime/stdint.h
@@ -69,7 +69,8 @@ __MINGW_EXTENSION typedef long long intmax_t;
__MINGW_EXTENSION typedef unsigned long long uintmax_t;
/* 7.18.2 Limits of specified-width integer types */
-#if !defined ( __cplusplus) || defined (__STDC_LIMIT_MACROS)
+#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \
+ defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
/* 7.18.2.1 Limits of exact-width integer types */
#define INT8_MIN (-128)