[CRT] Define NULL in crtdefs.h

This commit is contained in:
Timo Kreuzer 2021-07-27 15:08:26 +02:00
parent ce65553eaa
commit 486a4d93ed
10 changed files with 8 additions and 77 deletions

View file

@ -9,6 +9,14 @@
#ifndef _INC_CRTDEFS
#define _INC_CRTDEFS
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
#ifdef _USE_32BIT_TIME_T
#ifdef _WIN64
#error You cannot use 32-bit time_t (_USE_32BIT_TIME_T) with _WIN64