History

parser yak shaving stage 2.5: unbreak windows build

Ge Wang committed 3 years ago

Commit 3969a081 parent 6736cd54 files · +19 −12Browse files

Showing the changes to src/core/util_platforms.cpp (1 of 4 files). Show all

Unified · Split

src/core/util_platforms.cpp+10−0
@@ -34,6 +34,16 @@ · 33 unmodified lines
3434 #include "util_string.h"
3535 #include "chuck_errmsg.h"
3636
37+#ifdef __PLATFORM_WIN32__
38+#ifndef __CHUNREAL_ENGINE__
39+#include <windows.h> // for win32_tmpfile()
40+#else
41+ // 1.5.0.0 (ge) | #chunreal
42+ // unreal engine on windows disallows including windows.h
43+#include "Windows/MinWindows.h"
44+#endif // #ifndef __CHUNREAL_ENGINE__
45+#endif // #ifdef __PLATFORM_WIN32__
46+
3747 #include <sys/stat.h>
3848
3949

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t