Browse Source

platform_compat: use #include <process.h> instead of getpid macro

topo_upd
Evgeny 2 months ago
parent
commit
2785845acf
  1. 2
      lib/platform_compat.h

2
lib/platform_compat.h

@ -37,7 +37,7 @@ extern "C" {
// POSIX functions missing on Windows // POSIX functions missing on Windows
#define strcasecmp _stricmp #define strcasecmp _stricmp
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define getpid() ((int)GetCurrentProcessId()) #include <process.h>
// memmem — not available on Windows // memmem — not available on Windows
#define memmem compat_memmem #define memmem compat_memmem

Loading…
Cancel
Save