mingw does not recognize visual studio library types

Issue #181 resolved
ramMASTER created an issue

in source/core/time.cpp:

tm _getOsLocalTime( time_t date )

{

if defined(CAESARIA_PLATFORM_WIN)

tm ret;

localtime_s( &ret, &date );

return ret;

elif defined(CAESARIA_PLATFORM_UNIX)

//time(&date);

return *localtime( &date );

endif //CAESARIA_PLATFORM_UNIX

return tm(); }

mingw does not recognize localtime_s.

Comments (7)

  1. ramMASTER reporter

    I still got the error, what am i doing wrong ?

    error: ‘localtime_s’ was not declared in this scope

  2. Log in to comment