diff --git a/Common/File/FileUtil.cpp b/Common/File/FileUtil.cpp index d7a09d3069..03cc5a649a 100644 --- a/Common/File/FileUtil.cpp +++ b/Common/File/FileUtil.cpp @@ -24,6 +24,12 @@ #include "ppsspp_config.h" +#ifdef __MINGW32__ +#include +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS +#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L +#endif +#endif #include #include #include diff --git a/Common/TimeUtil.cpp b/Common/TimeUtil.cpp index 8f0ce379ed..08f48e742a 100644 --- a/Common/TimeUtil.cpp +++ b/Common/TimeUtil.cpp @@ -1,6 +1,5 @@ #include #include -#include #include "ppsspp_config.h" @@ -18,6 +17,7 @@ #include #include #endif +#include static double curtime = 0; diff --git a/Core/Dialog/PSPSaveDialog.cpp b/Core/Dialog/PSPSaveDialog.cpp index 99fc0bd39b..0253db8283 100755 --- a/Core/Dialog/PSPSaveDialog.cpp +++ b/Core/Dialog/PSPSaveDialog.cpp @@ -16,8 +16,11 @@ // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. #ifdef __MINGW32__ +#include +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L #endif +#endif #include #include diff --git a/Core/FileSystems/DirectoryFileSystem.cpp b/Core/FileSystems/DirectoryFileSystem.cpp index b73634ca35..1cbd075b97 100644 --- a/Core/FileSystems/DirectoryFileSystem.cpp +++ b/Core/FileSystems/DirectoryFileSystem.cpp @@ -17,6 +17,13 @@ #include "ppsspp_config.h" +#ifdef __MINGW32__ +#include +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS +#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L +#endif +#endif + #include #include #include diff --git a/Core/FileSystems/VirtualDiscFileSystem.cpp b/Core/FileSystems/VirtualDiscFileSystem.cpp index 63e78fcbf1..4c1f5c324c 100644 --- a/Core/FileSystems/VirtualDiscFileSystem.cpp +++ b/Core/FileSystems/VirtualDiscFileSystem.cpp @@ -16,6 +16,12 @@ // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. #include "ppsspp_config.h" +#ifdef __MINGW32__ +#include +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS +#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L +#endif +#endif #include #include "Common/File/FileUtil.h" diff --git a/Core/HLE/sceUsbGps.cpp b/Core/HLE/sceUsbGps.cpp index 456d09b487..2c9f320044 100644 --- a/Core/HLE/sceUsbGps.cpp +++ b/Core/HLE/sceUsbGps.cpp @@ -15,6 +15,9 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#ifdef __MINGW32__ +#include +#endif #include #include "Common/System/System.h" diff --git a/Core/Replay.cpp b/Core/Replay.cpp index fb03eeea4a..eaf1d5a959 100644 --- a/Core/Replay.cpp +++ b/Core/Replay.cpp @@ -15,6 +15,13 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#ifdef __MINGW32__ +#include +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS +#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L +#endif +#endif + #include #include #include