Skip to content

Commit 8f68f79

Browse files
committed
Fix windows build
1 parent 96c0ad5 commit 8f68f79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

thirdparty/bungee_library/upstream/src/Assert.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
#include <csignal>
77
#include <cstdio>
88
#include <cstdlib>
9+
10+
#if defined(_MSC_VER)
11+
#include <process.h>
12+
#define getpid _getpid
13+
#else
914
#include <unistd.h>
15+
#endif
1016

1117
namespace Bungee::Assert {
1218

0 commit comments

Comments
 (0)