diff options
author | PoroCYon <pcy@national.shitposting.agency> | 2019-03-30 16:51:32 +0100 |
---|---|---|
committer | PoroCYon <pcy@national.shitposting.agency> | 2019-03-30 16:51:32 +0100 |
commit | fe29bfad44fea8f07a18d1d645efea8a8e5a4c91 (patch) | |
tree | ebf5495dbbbbb8723d35416d7944e6dd69dfbe38 /src/libui_sdl | |
parent | 2a2e6a0c763c452f62140c2bde1f23609b9be87a (diff) |
fix stupid compilation issues on Linux
Diffstat (limited to 'src/libui_sdl')
-rw-r--r-- | src/libui_sdl/Platform.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp index 7eba035..6ebe8c3 100644 --- a/src/libui_sdl/Platform.cpp +++ b/src/libui_sdl/Platform.cpp @@ -24,6 +24,7 @@ #include "PlatformConfig.h" #include "LAN_Socket.h" #include "LAN_PCap.h" +#include <string> #ifdef __WIN32__ #define NTDDI_VERSION 0x06000000 // GROSS FUCKING HACK @@ -123,7 +124,7 @@ FILE* OpenFile(const char* path, const char* mode, bool mustexist) if (mustexist) { ret = fopen(path, "rb"); - if (ret) ret = freopen(path, mode); + if (ret) ret = freopen(path, mode, ret); } else ret = fopen(path, mode); |