dbertoni 2004/02/06 00:46:00
Modified: c/src/xalanc/XalanExe XalanExe.cpp
Log:
Added hackish support for timings with newer Windows SDKs.
Revision Changes Path
1.14 +34 -3 xml-xalan/c/src/xalanc/XalanExe/XalanExe.cpp
Index: XalanExe.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/XalanExe/XalanExe.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XalanExe.cpp 2 Feb 2004 19:31:29 -0000 1.13
+++ XalanExe.cpp 6 Feb 2004 08:46:00 -0000 1.14
@@ -90,15 +90,46 @@
-#if defined(_MSC_VER)
-#if (_MSC_VER < 1300) && !defined(_WIN64)
+#if defined(_MSC_VER) && !defined(_WIN64)
#define XALAN_USE_WINDOWS_TIMING
#endif
-#endif
#if defined(XALAN_USE_WINDOWS_TIMING)
+
#include "windows.h"
+#if (_MSC_VER < 1300)
#include "largeint.h"
+#else
+
+// For whatever reason, these are no longer in the Windows
+// header files, although they still exist. And no word as
+// to why they disappeared or how to replace them.
+extern "C"
+{
+LARGE_INTEGER
+WINAPI
+LargeIntegerDivide (
+ LARGE_INTEGER Dividend,
+ LARGE_INTEGER Divisor,
+ PLARGE_INTEGER Remainder
+ );
+
+LARGE_INTEGER
+WINAPI
+ExtendedLargeIntegerDivide (
+ LARGE_INTEGER Dividend,
+ ULONG Divisor,
+ PULONG Remainder
+ );
+
+LARGE_INTEGER
+WINAPI
+LargeIntegerSubtract (
+ LARGE_INTEGER Minuend,
+ LARGE_INTEGER Subtrahend
+ );
+};
+#endif
#else
#include <ctime>
#if defined(XALAN_STRICT_ANSI_HEADERS)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]