You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by gw...@apache.org on 2007/01/11 15:29:08 UTC

svn commit: r495235 - /incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp

Author: gwinn
Date: Thu Jan 11 06:29:04 2007
New Revision: 495235

URL: http://svn.apache.org/viewvc?view=rev&rev=495235
Log:
Simplify include of SDOUserMacros.h.

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=495235&r1=495234&r2=495235
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp Thu Jan 11 06:29:04 2007
@@ -26,19 +26,17 @@
 // However, Windows doesn't have localtime_r, and actually varies what it does
 // have across dfferent versions. To accommodate this we use a macro that
 // resolves to the correct settings on linux and MS VC8. For other platforms
-// it will be necessary to modify this file or override the macro with a -D
-// option on the compile line. Furthermore, if the definition supplied in that
-// way requires that other header files be included as well then those can be
-// supplied through the SDOUserMacros.h file
+// it will be necessary to modify this file or override the macro for which we
+// provide the SDOUserMacros.h file so that any required macro definition can
+// supply other includes if they are needed.
 
+#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);
 #else
   #define tuscany_localtime_r(value, tmp_tm) localtime_r(&value, &tmp_tm);
 #endif
-#else
-  #include "commonj/sdo/SDOUserMacros.h"
 #endif // tuscany_localtime_r
 
 namespace commonj{



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org