Author: wyoung
Date: Fri Jan 12 11:18:23 2007
New Revision: 1378

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1378&view=rev
Log:
Using localtime() in datetime module for MinGW case instead of newer
explicit alternative (localtime_r() or localtime_s()).  Apparently such
a thing is not available, because it uses the old VC++6 RTL, which didn't
have localtime_s().

Modified:
    trunk/lib/datetime.cpp

Modified: trunk/lib/datetime.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/datetime.cpp?rev=1378&r1=1377&r2=1378&view=diff
==============================================================================
--- trunk/lib/datetime.cpp (original)
+++ trunk/lib/datetime.cpp Fri Jan 12 11:18:23 2007
@@ -191,6 +191,8 @@
        struct tm tm;
 #if defined(_MSC_VER)
        localtime_s(&tm, &t);
+#elif defined(__MINGW32_VERSION)
+       memcpy(&tm, localtime(&t), sizeof(tm));
 #else
        localtime_r(&t, &tm);
 #endif


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to