undef NULL to fix compilation problems on FreeBSD after 08d39dd. (#14341)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Fri, 6 Oct 2017 20:30:24 +0000 (13:30 -0700)
committerJan Vorlicek <janvorli@microsoft.com>
Fri, 6 Oct 2017 20:30:24 +0000 (22:30 +0200)
* undef NULL to fix compilation problems on FreeBSD after 08d39dd.

* remove unneccesary #ifndef NULL

src/pal/inc/pal.h

index 1a1b6c8..8f6bc12 100644 (file)
@@ -277,17 +277,13 @@ PAL_IsDebuggerPresent(VOID);
 #define _UI32_MAX UINT_MAX
 #define _UI32_MIN UINT_MIN
 
-#ifdef PAL_STDCPP_COMPAT
 #undef NULL
-#endif
 
-#ifndef NULL
 #if defined(__cplusplus)
 #define NULL    0
 #else
 #define NULL    ((void *)0)
 #endif
-#endif
 
 #if defined(PAL_STDCPP_COMPAT) && !defined(__cplusplus)
 #define nullptr NULL