Author: robbinspg
Date: Mon Aug 13 03:00:59 2007
New Revision: 565287
URL: http://svn.apache.org/viewvc?view=rev&rev=565287
Log:
TUSCANY-1529 Apply Brady's patch
Modified:
incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp
Modified: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp?view=diff&rev=565287&r1=565286&r2=565287
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp
(original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp Mon Aug
13 03:00:59 2007
@@ -33,7 +33,11 @@
#include "commonj/sdo/SDOUserMacros.h"
#ifndef tuscany_localtime_r
#if defined(WIN32) || defined (_WINDOWS)
- #define tuscany_localtime_r(value, tmp_tm) localtime_s(&tmp_tm, &value);
+ #if _MSC_VER < 1400 // _MSC_VER: 1400 is msvc 8.0, so anything less is pre
8.0
+ #define tuscany_localtime_r(value, ignore) localtime(&value);
+ #else
+ #define tuscany_localtime_r(value, tmp_tm) localtime_s(&tmp_tm, &value);
+ #endif
#else
#define tuscany_localtime_r(value, tmp_tm) localtime_r(&value, &tmp_tm);
#endif
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]