Extended and added thread support macros

[SVN r11197]
This commit is contained in:
John Maddock
2001-09-22 11:50:15 +00:00
parent 7b7eeadafa
commit 88e49f6808
3 changed files with 51 additions and 0 deletions

View File

@@ -12,5 +12,17 @@
#define BOOST_NO_CWCHAR
#define BOOST_NO_SWPRINTF
//
// Threading API:
// See if we have POSIX threads, if we do use them, otherwise
// revert to native Win threads.
#include <unistd.h>
#if if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
# define BOOST_HAS_PTHREADS
# define BOOST_HAS_SCHED_YIELD
#else
# define NOOST_HAS_WINTHREADS
#endif