dbertoni 01/02/28 10:50:41
Modified: c/Tests/Threads ThreadTest.cpp
Log:
Added #ifdef for old-style casts.
Revision Changes Path
1.10 +5 -1 xml-xalan/c/Tests/Threads/ThreadTest.cpp
Index: ThreadTest.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Threads/ThreadTest.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ThreadTest.cpp 2001/02/26 22:56:00 1.9
+++ ThreadTest.cpp 2001/02/28 18:50:36 1.10
@@ -191,7 +191,11 @@
// theProcessor.setStylesheetRoot method. The transform is done using the
theProcessor's
// process() method.
- const ThreadInfo* theInfo = reinterpret_cast<const
ThreadInfo*>(param);
+#if defined(XALAN_OLD_STYLE_CASTS)
+ const ThreadInfo* const theInfo = (const ThreadInfo*)param;
+#else
+ const ThreadInfo* const theInfo = reinterpret_cast<const
ThreadInfo*>(param);
+#endif
assert(theInfo != 0);