Skip to content

Commit b75d476

Browse files
committed
[VCRUNTIME] Add __nullptr definition for non-MSVC compilers
1 parent 6d10925 commit b75d476

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/include/vcruntime/_mingw.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */
262262
# define __mingw_ovr static __cdecl
263263
#endif /* __cplusplus */
264264

265+
#if defined(__cplusplus) && !defined(_MSC_VER)
266+
#define __nullptr nullptr
267+
#endif
268+
265269
#include "_mingw_mac.h"
266270

267271
#endif /* !_INC_MINGW */

0 commit comments

Comments
 (0)