tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gw...@apache.org
Subject svn commit: r494815 - in /incubator/tuscany/cpp/sdo: VSExpress/tuscany_sdo/sdo_runtime/sdo_runtime.vcproj runtime/core/src/commonj/sdo/SDODate.cpp runtime/core/src/commonj/sdo/SDOUserMacros.h
Date Wed, 10 Jan 2007 14:04:10 GMT
Author: gwinn
Date: Wed Jan 10 06:04:08 2007
New Revision: 494815

URL: http://svn.apache.org/viewvc?view=rev&rev=494815
Log:
Add SDOUserMacros.h to help user re-definition of tuscany_localtime_r macro.

Added:
    incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOUserMacros.h
Modified:
    incubator/tuscany/cpp/sdo/VSExpress/tuscany_sdo/sdo_runtime/sdo_runtime.vcproj
    incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp

Modified: incubator/tuscany/cpp/sdo/VSExpress/tuscany_sdo/sdo_runtime/sdo_runtime.vcproj
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/VSExpress/tuscany_sdo/sdo_runtime/sdo_runtime.vcproj?view=diff&rev=494815&r1=494814&r2=494815
==============================================================================
--- incubator/tuscany/cpp/sdo/VSExpress/tuscany_sdo/sdo_runtime/sdo_runtime.vcproj (original)
+++ incubator/tuscany/cpp/sdo/VSExpress/tuscany_sdo/sdo_runtime/sdo_runtime.vcproj Wed Jan
10 06:04:08 2007
@@ -2105,6 +2105,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\..\runtime\core\src\commonj\sdo\SDOUserMacros.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\..\runtime\core\src\commonj\sdo\SDOUtils.h"
 				>
 			</File>

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=494815&r1=494814&r2=494815
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDODate.cpp Wed Jan 10 06:04:08
2007
@@ -27,14 +27,19 @@
 // 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.
+// 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
+
 #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
-#endif
+#else
+  #include "commonj/sdo/SDOUserMacros.h"
+#endif // tuscany_localtime_r
 
 namespace commonj{
 namespace sdo{

Added: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOUserMacros.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOUserMacros.h?view=auto&rev=494815
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOUserMacros.h (added)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/SDOUserMacros.h Wed Jan 10 06:04:08
2007
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* $Rev: 452786 $ $Date: 2006-10-04 08:57:36 +0100 (Wed, 04 Oct 2006) $ */
+
+#ifndef _SDO_SDOUSERMACROS_H_
+#define _SDO_SDOUSERMACROS_H_
+
+// This file is deliberately empty. It is included by SDO source files
+// that allow macros to be overridden by user definitions. See SDODate.h/.cpp
+// for an example of this.
+
+#endif //_SDO_SDODATE_H_
+



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


Mime
View raw message