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. */