commit | 36d0e5b73aa9e446e1ae02fdc9fdfd4f1d894091 | [log] [tgz] |
---|---|---|
author | Dimitrie O. Paun <dpaun@rogers.com> | Fri Jan 03 03:07:06 2003 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Jan 03 03:07:06 2003 +0000 |
tree | 172de784e84ed4417b2adc1526cf46c2f17cb62c | |
parent | 5e36ae56b24025c658b797b0a045e60afc164e13 [diff] [blame] |
Define NULL if it's not defined already.
diff --git a/include/msvcrt/stdlib.h b/include/msvcrt/stdlib.h index 8bdf608..0ace665 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