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

master
Luca Saiu 2 months ago
parent af7cc32668
commit bfb5f81247
  1. 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