Browse Source

getpid: #undefine before re-#define, to avoid a warning

pull/1/head
Luca Saiu 3 years ago
parent
commit
bfb5f81247
  1. 5
      src/pEpLog.hh

5
src/pEpLog.hh

@ -12,9 +12,10 @@
#ifdef WIN32 #ifdef WIN32
#include <process.h> #include <process.h>
// TODO: once this works, move this to pEpEngine platform_windows.h and file a PR // TODO: once this works, move this to pEpEngine platform_windows.h and file a PR
#ifndef getpid #ifdef getpid
#define getpid() _getpid() #undef getpid
#endif #endif
#define getpid() _getpid()
#else #else
#include <unistd.h> #include <unistd.h>

Loading…
Cancel
Save