From bfb5f8124792e6926932c831f4a6cde6dd78d220 Mon Sep 17 00:00:00 2001 From: Luca Saiu Date: Thu, 6 Oct 2022 17:25:14 +0200 Subject: [PATCH] getpid: #undefine before re-#define, to avoid a warning --- src/pEpLog.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pEpLog.hh b/src/pEpLog.hh index 54eb095..74f9b56 100644 --- a/src/pEpLog.hh +++ b/src/pEpLog.hh @@ -12,9 +12,10 @@ #ifdef WIN32 #include // TODO: once this works, move this to pEpEngine platform_windows.h and file a PR - #ifndef getpid - #define getpid() _getpid() + #ifdef getpid + #undef getpid #endif + #define getpid() _getpid() #else #include