Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/config/platform/hpux.hpp @ 33

Last change on this file since 33 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.3 KB
Line 
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#elif defined(__HP_aCC) && !defined(BOOST_DISABLE_THREADS)
39#  define BOOST_HAS_PTHREADS
40#endif
41
42// boilerplate code:
43#define BOOST_HAS_UNISTD_H
44#include <boost/config/posix_features.hpp>
45
46// the following are always available:
47#ifndef BOOST_HAS_GETTIMEOFDAY
48#  define BOOST_HAS_GETTIMEOFDAY
49#endif
50#ifndef BOOST_HAS_SCHED_YIELD
51#    define BOOST_HAS_SCHED_YIELD
52#endif
53#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
54#    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
55#endif
56#ifndef BOOST_HAS_NL_TYPES_H
57#    define BOOST_HAS_NL_TYPES_H
58#endif
59#ifndef BOOST_HAS_NANOSLEEP
60#    define BOOST_HAS_NANOSLEEP
61#endif
62#ifndef BOOST_HAS_GETTIMEOFDAY
63#    define BOOST_HAS_GETTIMEOFDAY
64#endif
65#ifndef BOOST_HAS_DIRENT_H
66#    define BOOST_HAS_DIRENT_H
67#endif
68#ifndef BOOST_HAS_CLOCK_GETTIME
69#    define BOOST_HAS_CLOCK_GETTIME
70#endif
71#ifndef BOOST_HAS_SIGACTION
72#  define BOOST_HAS_SIGACTION
73#endif
74#ifndef BOOST_HAS_NRVO
75#  define BOOST_HAS_NRVO
76#endif
77#ifndef BOOST_HAS_LOG1P
78#  define BOOST_HAS_LOG1P
79#endif
80#ifndef BOOST_HAS_EXPM1
81#  define BOOST_HAS_EXPM1
82#endif
83
84
85
Note: See TracBrowser for help on using the repository browser.