Author: wyoung
Date: Wed Jan 17 06:20:51 2007
New Revision: 1415
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1415&view=rev
Log:
Not trying to use localtime_s() instead of localtime() if the user is
using VC++ but STLport instead of the native RTL.
Modified:
trunk/lib/datetime.cpp
Modified: trunk/lib/datetime.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/datetime.cpp?rev=1415&r1=1414&r2=1415&view=diff
==============================================================================
--- trunk/lib/datetime.cpp (original)
+++ trunk/lib/datetime.cpp Wed Jan 17 06:20:51 2007
@@ -189,7 +189,7 @@
DateTime::DateTime(time_t t)
{
struct tm tm;
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(_STLP_VERSION)
localtime_s(&tm, &t);
#elif defined(__MINGW32_VERSION)
memcpy(&tm, localtime(&t), sizeof(tm));
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits