forked from boostorg/config
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:
@@ -21,9 +21,15 @@
|
|||||||
#define BOOST_NO_SWPRINTF
|
#define BOOST_NO_SWPRINTF
|
||||||
#define BOOST_NO_CWCTYPE
|
#define BOOST_NO_CWCTYPE
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__)
|
||||||
// GNU C on HP-UX does not support threads (checked up to gcc 3.3)
|
# if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))
|
||||||
# define BOOST_DISABLE_THREADS
|
// 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
|
#endif
|
||||||
|
|
||||||
// boilerplate code:
|
// boilerplate code:
|
||||||
|
@@ -39,6 +39,9 @@
|
|||||||
# else
|
# else
|
||||||
# define BOOST_DISABLE_THREADS
|
# define BOOST_DISABLE_THREADS
|
||||||
# endif
|
# 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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user