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
#include <process.h>
// 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 <unistd.h>

Loading…
Cancel
Save