From 7c55d77067e21a2132c521a141bd31e4ff4c4888 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 13 Dec 2000 01:51:47 +0000 Subject: [PATCH] Define NULL as in Win32. --- include/windef.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/windef.h b/include/windef.h index a39fd33caca..3cdbe600b7d 100644 --- a/include/windef.h +++ b/include/windef.h @@ -29,10 +29,12 @@ extern "C" { #endif #define TRUE 1 -#ifdef NULL #undef NULL -#endif +#ifdef __cplusplus #define NULL 0 +#else +#define NULL ((void*)0) +#endif /* Macros to map Winelib names to the correct implementation name */ /* depending on __WINE__ and UNICODE macros. */