From 9f7743e21a92b4c036cf569bea3a10089ea822f6 Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Mon, 19 Feb 2024 12:24:21 +0000 Subject: [PATCH] HPCC-31301 Remove macros from platform.h that can cause 3rd party compile problems Signed-off-by: Gavin Halliday --- system/include/platform.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/system/include/platform.h b/system/include/platform.h index b3ccbf287ae..2421016a4b1 100644 --- a/system/include/platform.h +++ b/system/include/platform.h @@ -346,7 +346,7 @@ typedef int socklen_t; #define _lclose _close #define _lwrite _write #define _lopen _open -#define DeleteFile(name) (unlink(name)==0) +inline bool DeleteFile(const char * name) { return unlink(name)==0; } #define wvsprintf vsprintf #define _close ::close #define _stat stat @@ -357,11 +357,7 @@ typedef int socklen_t; #define TRUE 1 #define FALSE 0 -//#define false FALSE -//#define true TRUE #define HFILE int -//#define bool unsigned char -#define BOOL bool #define UINT unsigned int #define DWORD unsigned long #define VOID void