xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/Tests/Threads ThreadTest.cpp
Date Fri, 04 Jan 2002 21:19:11 GMT
dbertoni    02/01/04 13:19:11

  Modified:    c/Tests/Threads ThreadTest.cpp
  Log:
  Workaround for latest Solaris compiler.
  
  Revision  Changes    Path
  1.19      +7 -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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ThreadTest.cpp	4 Jan 2002 21:08:25 -0000	1.18
  +++ ThreadTest.cpp	4 Jan 2002 21:19:11 -0000	1.19
  @@ -4,7 +4,6 @@
   
   
   #include <cassert>
  -#include <csignal>
   #include <ctime>
   
   
  @@ -182,11 +181,14 @@
   	}
   }
   #elif defined(XALAN_POSIX2_AVAILABLE)
  +extern "C"
  +{
   static void
   signalHandler(int)
   {
   	fContinue = false;
   }
  +};
   #else
   #error Unsupported platform!
   #endif
  @@ -397,7 +399,11 @@
   				signalHandler,
   				TRUE);
   #elif defined(XALAN_POSIX2_AVAILABLE)
  +#if defined(XALAN_SIGNAL_IN_STD)
  +		std::signal(SIGINT, signalHandler);
  +#else
   		signal(SIGINT, signalHandler);
  +#endif
   #else
   #error Unsupported platform!
   #endif
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message