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