From 36d0e5b73aa9e446e1ae02fdc9fdfd4f1d894091 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Fri, 3 Jan 2003 03:07:06 +0000 Subject: [PATCH] Define NULL if it's not defined already. --- include/msvcrt/stdlib.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/msvcrt/stdlib.h b/include/msvcrt/stdlib.h index 8bdf608c26..0ace665c7e 100644 --- a/include/msvcrt/stdlib.h +++ b/include/msvcrt/stdlib.h @@ -17,6 +17,14 @@ # endif #endif +#ifndef NULL +#ifdef __cplusplus +#define NULL 0 +#else +#define NULL ((void*)0) +#endif +#endif + #ifndef MSVCRT_WCHAR_T_DEFINED #define MSVCRT_WCHAR_T_DEFINED #ifndef __cplusplus