1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

fix for windows builds

This commit is contained in:
mrcheko 2014-04-14 17:18:29 +04:00
parent 2c2106205d
commit 4e7ee97050

View file

@ -259,7 +259,11 @@ namespace MWGui
timeinfo = localtime(&time); timeinfo = localtime(&time);
// Use system/environment locale settings for datetime formatting // Use system/environment locale settings for datetime formatting
#if defined(_WIN32) || defined(__WINDOWS__)
setlocale(LC_TIME, "");
#else
std::setlocale(LC_TIME, ""); std::setlocale(LC_TIME, "");
#endif
const int size=1024; const int size=1024;
char buffer[size]; char buffer[size];