fix for Windows build (free is NULL safe on Windows)
authorVictor Kirhenshtein <victor@netxms.org>
Fri, 3 Nov 2017 08:48:22 +0000 (10:48 +0200)
committerVictor Kirhenshtein <victor@netxms.org>
Fri, 3 Nov 2017 08:48:22 +0000 (10:48 +0200)
include/nms_common.h

index 0391cac..44d983a 100644 (file)
@@ -194,6 +194,8 @@ typedef int bool;
 
 #define SAFE_FGETWS_WITH_POPEN  1
 
 
 #define SAFE_FGETWS_WITH_POPEN  1
 
+#define FREE_IS_NULL_SAFE       1
+
 #define FS_PATH_SEPARATOR       _T("\\")
 #define FS_PATH_SEPARATOR_A     "\\"
 #define FS_PATH_SEPARATOR_W     L"\\"
 #define FS_PATH_SEPARATOR       _T("\\")
 #define FS_PATH_SEPARATOR_A     "\\"
 #define FS_PATH_SEPARATOR_W     L"\\"