1 // (C) Copyright John Maddock 2001 - 2003.
2 // (C) Copyright Jens Maurer 2001 - 2003.
3 // (C) Copyright David Abrahams 2002.
4 // (C) Copyright Toon Knapen 2003.
5 // (C) Copyright Boris Gubenko 2006.
6 // Use, modification and distribution are subject to the
7 // Boost Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 // See http://www.boost.org for most recent version.
12 // hpux specific config options:
14 #define BOOST_PLATFORM "HP-UX"
16 // In principle, HP-UX has a nice <stdint.h> under the name <inttypes.h>
17 // However, it has the following problem:
18 // Use of UINT32_C(0) results in "0u l" for the preprocessed source
19 // (verifyable with gcc 2.95.3)
20 #if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined(__HP_aCC)
21 # define BOOST_HAS_STDINT_H
24 #if !(defined(__HP_aCC) || !defined(_INCLUDE__STDC_A1_SOURCE))
25 # define BOOST_NO_SWPRINTF
26 # define BOOST_NO_CWCTYPE
30 # if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))
31 // GNU C on HP-UX does not support threads (checked up to gcc 3.3)
32 # define BOOST_DISABLE_THREADS
33 # elif !defined(BOOST_DISABLE_THREADS)
34 // threads supported from gcc-3.3 onwards:
35 # define BOOST_HAS_THREADS
36 # define BOOST_HAS_PTHREADS
41 #define BOOST_HAS_UNISTD_H
42 #include <boost/config/posix_features.hpp>
44 // the following are always available:
45 #ifndef BOOST_HAS_GETTIMEOFDAY
46 # define BOOST_HAS_GETTIMEOFDAY
48 #ifndef BOOST_HAS_SCHED_YIELD
49 # define BOOST_HAS_SCHED_YIELD
51 #ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
52 # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
54 #ifndef BOOST_HAS_NL_TYPES_H
55 # define BOOST_HAS_NL_TYPES_H
57 #ifndef BOOST_HAS_NANOSLEEP
58 # define BOOST_HAS_NANOSLEEP
60 #ifndef BOOST_HAS_GETTIMEOFDAY
61 # define BOOST_HAS_GETTIMEOFDAY
63 #ifndef BOOST_HAS_DIRENT_H
64 # define BOOST_HAS_DIRENT_H
66 #ifndef BOOST_HAS_CLOCK_GETTIME
67 # define BOOST_HAS_CLOCK_GETTIME
69 #ifndef BOOST_HAS_SIGACTION
70 # define BOOST_HAS_SIGACTION
72 #ifndef BOOST_HAS_NRVO
73 # define BOOST_HAS_NRVO
75 #ifndef BOOST_HAS_LOG1P
76 # define BOOST_HAS_LOG1P
78 #ifndef BOOST_HAS_EXPM1
79 # define BOOST_HAS_EXPM1