[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.
This commit is contained in:
Timo Kreuzer 2024-10-11 14:53:52 +02:00
parent e5633f656f
commit 53d3cc5f3f

View File

@ -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)