hpux.hpp

Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001 - 2003. 
00002 //  (C) Copyright Jens Maurer 2001 - 2003. 
00003 //  (C) Copyright David Abrahams 2002. 
00004 //  (C) Copyright Toon Knapen 2003. 
00005 //  Use, modification and distribution are subject to the 
00006 //  Boost Software License, Version 1.0. (See accompanying file 
00007 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00008 
00009 //  See http://www.boost.org for most recent version.
00010 
00011 //  hpux specific config options:
00012 
00013 #define BOOST_PLATFORM "HP-UX"
00014 
00015 // In principle, HP-UX has a nice <stdint.h> under the name <inttypes.h>
00016 // However, it has the following problem:
00017 // Use of UINT32_C(0) results in "0u l" for the preprocessed source
00018 // (verifyable with gcc 2.95.3, assumed for HP aCC)
00019 // #define BOOST_HAS_STDINT_H
00020 
00021 #define BOOST_NO_SWPRINTF 
00022 #define BOOST_NO_CWCTYPE
00023 
00024 #if defined(__GNUC__)
00025 #  if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))
00026       // GNU C on HP-UX does not support threads (checked up to gcc 3.3)
00027 #     define BOOST_DISABLE_THREADS
00028 #  elif !defined(BOOST_DISABLE_THREADS)
00029       // threads supported from gcc-3.3 onwards:
00030 #     define BOOST_HAS_THREADS
00031 #     define BOOST_HAS_PTHREADS
00032 #  endif
00033 #endif
00034 
00035 // boilerplate code:
00036 #define BOOST_HAS_UNISTD_H
00037 #include <sysc/packages/boost/config/posix_features.hpp>
00038 
00039 // the following are always available:
00040 #ifndef BOOST_HAS_GETTIMEOFDAY
00041 #  define BOOST_HAS_GETTIMEOFDAY
00042 #endif
00043 #ifndef BOOST_HAS_SCHED_YIELD
00044 #    define BOOST_HAS_SCHED_YIELD
00045 #endif
00046 #ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
00047 #    define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
00048 #endif
00049 #ifndef BOOST_HAS_NL_TYPES_H
00050 #    define BOOST_HAS_NL_TYPES_H
00051 #endif
00052 #ifndef BOOST_HAS_NANOSLEEP
00053 #    define BOOST_HAS_NANOSLEEP
00054 #endif
00055 #ifndef BOOST_HAS_GETTIMEOFDAY
00056 #    define BOOST_HAS_GETTIMEOFDAY
00057 #endif
00058 #ifndef BOOST_HAS_DIRENT_H
00059 #    define BOOST_HAS_DIRENT_H
00060 #endif
00061 #ifndef BOOST_HAS_CLOCK_GETTIME
00062 #    define BOOST_HAS_CLOCK_GETTIME
00063 #endif
00064 #ifndef BOOST_HAS_SIGACTION
00065 #  define BOOST_HAS_SIGACTION
00066 #endif
00067 
00068 

Generated on Wed Jan 21 15:32:09 2009 for SystemC by  doxygen 1.5.5