Turn off threading support if glibc++ is single threaded.

Enable threading support on HPUX for gcc >= 3.3.


[SVN r26967]
This commit is contained in:
John Maddock
2005-01-31 17:06:43 +00:00
parent 345eae6135
commit dcd606e1e1
2 changed files with 12 additions and 3 deletions

View File

@@ -21,9 +21,15 @@
#define BOOST_NO_SWPRINTF
#define BOOST_NO_CWCTYPE
#ifdef __GNUC__
// GNU C on HP-UX does not support threads (checked up to gcc 3.3)
# define BOOST_DISABLE_THREADS
#if defined(__GNUC__)
# if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))
// GNU C on HP-UX does not support threads (checked up to gcc 3.3)
# define BOOST_DISABLE_THREADS
# elif !defined(BOOST_DISABLE_THREADS)
// threads supported from gcc-3.3 onwards:
# define BOOST_HAS_THREADS
# define BOOST_HAS_PTHREADS
# endif
#endif
// boilerplate code:

View File

@@ -39,6 +39,9 @@
# else
# define BOOST_DISABLE_THREADS
# endif
#elif defined(__GLIBCPP__) && !defined(_GLIBCPP_HAVE_GTHR_DEFAULT)
// disable thread support if the std lib was built single threaded:
# define BOOST_DISABLE_THREADS
#endif