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 <[EMAIL PROTECTED]>
* 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" {