mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Common: Include unistd.h before ctime on mingw.
This is required for localtime_r and similar to be available.
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "ppsspp_config.h"
|
||||
#ifdef __MINGW32__
|
||||
#include <unistd.h>
|
||||
#ifndef _POSIX_THREAD_SAFE_FUNCTIONS
|
||||
#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
|
||||
#endif
|
||||
#endif
|
||||
#include <ctime>
|
||||
|
||||
#include "Common/File/FileUtil.h"
|
||||
|
||||
Reference in New Issue
Block a user