axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r387580 - /webservices/axis/trunk/c/src/configuration/FileFunctions.cpp
Date Tue, 21 Mar 2006 16:55:52 GMT
Author: prestonf
Date: Tue Mar 21 08:55:51 2006
New Revision: 387580

URL: http://svn.apache.org/viewcvs?rev=387580&view=rev
Log:
To provide compatability with MSVC6, have had to use 32 bit version of time.

Modified:
    webservices/axis/trunk/c/src/configuration/FileFunctions.cpp

Modified: webservices/axis/trunk/c/src/configuration/FileFunctions.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/configuration/FileFunctions.cpp?rev=387580&r1=387579&r2=387580&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/configuration/FileFunctions.cpp (original)
+++ webservices/axis/trunk/c/src/configuration/FileFunctions.cpp Tue Mar 21 08:55:51 2006
@@ -154,11 +154,19 @@
 			{
 				char		szConfigData[512];
 #if WIN32
+#if defined(_MSC_VER) && _MSC_VER >= 1300	// Start MSVC verison number > 7.0
 				__time64_t	ltime;
 
 				_time64( &ltime);
 
 				sprintf( szConfigData, "# This header file was created by AxisConfiguration on %s", _ctime64(
&ltime));
+#else										// Else !(MSVC verison number > 7.0)
+				time_t sTimeNow;
+
+			    sTimeNow = time( NULL);
+
+				sprintf( szConfigData, "# This header file was created by AxisConfiguration on %s", asctime(
localtime( &sTimeNow)));
+#endif										// End MSVC verison number
 #else
 				time_t sTimeNow;
 
@@ -276,11 +284,19 @@
 		char		szConfigData[512];
 
 #if WIN32
-		__time64_t	ltime;
+#if defined(_MSC_VER) && _MSC_VER >= 1300	// Start MSVC verison number > 7.0
+				__time64_t	ltime;
 
-		_time64( &ltime);
+				_time64( &ltime);
 
-		sprintf( szConfigData, "# This header file was created by AxisConfiguration on %s", _ctime64(
&ltime));
+				sprintf( szConfigData, "# This header file was created by AxisConfiguration on %s", _ctime64(
&ltime));
+#else										// Else !(MSVC verison number > 7.0)
+				time_t sTimeNow;
+
+			    sTimeNow = time( NULL);
+
+				sprintf( szConfigData, "# This header file was created by AxisConfiguration on %s", asctime(
localtime( &sTimeNow)));
+#endif										// End MSVC verison number
 #else
 		time_t sTimeNow;
 
@@ -337,11 +353,19 @@
 			long		lFileLength = GetFileLength( pFileFrom);
 			char		szBackupHeader[256];
 #if WIN32
+#if defined(_MSC_VER) && _MSC_VER >= 1300	// Start MSVC verison number > 7.0
 			__time64_t	ltime;
 
 			_time64( &ltime);
 
 			sprintf( szBackupHeader, "# This header file was automatically backed up by AxisConfiguration
on %s", _ctime64( &ltime));
+#else										// Else !(MSVC verison number > 7.0)
+			time_t sTimeNow;
+
+		    sTimeNow = time( NULL);
+
+			sprintf( szBackupHeader, "# This header file was automatically backed up by AxisConfiguration
on %s", asctime( localtime( &sTimeNow)));
+#endif										// End MSVC verison number
 #else
 			time_t	sTimeNow;
 



Mime
View raw message