Define NULL
Dimitrie O. Paun
dpaun at rogers.com
Thu Jan 2 15:18:28 CST 2003
ChangeLog
Define NULL in msvcrt's stdlib.h if it's not defined already.
Index: include/msvcrt/stdlib.h
===================================================================
RCS file: /var/cvs/wine/include/msvcrt/stdlib.h,v
retrieving revision 1.8
diff -u -r1.8 stdlib.h
--- include/msvcrt/stdlib.h 18 Dec 2002 20:17:20 -0000 1.8
+++ include/msvcrt/stdlib.h 29 Dec 2002 07:41:01 -0000
@@ -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
--
Dimi.
More information about the wine-patches
mailing list