]> git.lyx.org Git - lyx.git/blob - boost/boost/config/platform/hpux.hpp
Update in-source boost to latest updates from boost 1.34 branch.
[lyx.git] / boost / boost / config / platform / hpux.hpp
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)
9
10 //  See http://www.boost.org for most recent version.
11
12 //  hpux specific config options:
13
14 #define BOOST_PLATFORM "HP-UX"
15
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
22 #endif
23
24 #if !(defined(__HP_aCC) || !defined(_INCLUDE__STDC_A1_SOURCE))
25 #  define BOOST_NO_SWPRINTF
26 #  define BOOST_NO_CWCTYPE
27 #endif
28
29 #if defined(__GNUC__)
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
37 #  endif
38 #endif
39
40 // boilerplate code:
41 #define BOOST_HAS_UNISTD_H
42 #include <boost/config/posix_features.hpp>
43
44 // the following are always available:
45 #ifndef BOOST_HAS_GETTIMEOFDAY
46 #  define BOOST_HAS_GETTIMEOFDAY
47 #endif
48 #ifndef BOOST_HAS_SCHED_YIELD
49 #    define BOOST_HAS_SCHED_YIELD
50 #endif
51 #ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
52 #    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
53 #endif
54 #ifndef BOOST_HAS_NL_TYPES_H
55 #    define BOOST_HAS_NL_TYPES_H
56 #endif
57 #ifndef BOOST_HAS_NANOSLEEP
58 #    define BOOST_HAS_NANOSLEEP
59 #endif
60 #ifndef BOOST_HAS_GETTIMEOFDAY
61 #    define BOOST_HAS_GETTIMEOFDAY
62 #endif
63 #ifndef BOOST_HAS_DIRENT_H
64 #    define BOOST_HAS_DIRENT_H
65 #endif
66 #ifndef BOOST_HAS_CLOCK_GETTIME
67 #    define BOOST_HAS_CLOCK_GETTIME
68 #endif
69 #ifndef BOOST_HAS_SIGACTION
70 #  define BOOST_HAS_SIGACTION
71 #endif
72 #ifndef BOOST_HAS_NRVO 
73 #  define BOOST_HAS_NRVO
74 #endif
75 #ifndef BOOST_HAS_LOG1P 
76 #  define BOOST_HAS_LOG1P
77 #endif
78 #ifndef BOOST_HAS_EXPM1
79 #  define BOOST_HAS_EXPM1
80 #endif
81
82