stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r560703 - /incubator/stdcxx/trunk/tests/src/thread.cpp
Date Sun, 29 Jul 2007 09:52:12 GMT
Author: faridz
Date: Sun Jul 29 02:52:12 2007
New Revision: 560703

URL: http://svn.apache.org/viewvc?view=rev&rev=560703
Log:
2007-07-29 Farid Zaripov <Farid_Zaripov@epam.com>

	* thread.cpp [_WIN32]: Use _beginthreadex() only if _MT defined.

Modified:
    incubator/stdcxx/trunk/tests/src/thread.cpp

Modified: incubator/stdcxx/trunk/tests/src/thread.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/thread.cpp?view=diff&rev=560703&r1=560702&r2=560703
==============================================================================
--- incubator/stdcxx/trunk/tests/src/thread.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/thread.cpp Sun Jul 29 02:52:12 2007
@@ -36,6 +36,8 @@
 #ifndef _WIN32
 #  include <stdio.h>      // for FILE, fscanf(), popen()
 #  include <unistd.h>     // for sysconf(), _SC_NPROCESSORS_{CONF,ONLN}
+#else
+#  include <windows.h>    // for GetSystemInfo()
 #endif   // _WIN32
 
 /**************************************************************************/
@@ -238,8 +240,7 @@
 
 /**************************************************************************/
 
-#elif defined (_WIN32) || defined (_WIN64)
-#  include <windows.h>    // for GetSystemInfo()
+#elif defined (_WIN32) && defined (_MT)
 #  include <process.h>    // for _beginthreadex()
 
 extern "C" {



Mime
View raw message