localtime_s not working in VS2003
Hey guys. I am not a c++ programmer but i am trying to compile a code and i get this:
c:\Documents and Settings\HP_Administrator\Desktop\arcemu\src\arcem u-world\BattlegroundMgr.cpp(1072): error C3861: 'localtime_s': identifier not found, even with argument-dependent lookup
I made a few search and found out localtime_s works only for VS2005+
Can somewone show me how i can work arround that beside changing my application lol
Code:
1070 t = time(NULL);
1071
1072 #ifdef WIN32
1073 localtime_s(&tm, &t);
1074 #else
1075 localtime_r(&t, &tm);
1076 #endif