select_platform_config.hpp

Go to the documentation of this file.
00001 //  Boost compiler configuration selection header file
00002 
00003 //  (C) Copyright John Maddock 2001 - 2002. 
00004 //  (C) Copyright Jens Maurer 2001. 
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 // locate which platform we are on and define BOOST_PLATFORM_CONFIG as needed.
00012 // Note that we define the headers to include using "header_name" not
00013 // <header_name> in order to prevent macro expansion within the header
00014 // name (for example "linux" is a macro on linux systems).
00015 
00016 #if defined(linux) || defined(__linux) || defined(__linux__)
00017 // linux:
00018 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/linux.hpp"
00019 
00020 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
00021 // BSD:
00022 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/bsd.hpp"
00023 
00024 #elif defined(sun) || defined(__sun)
00025 // solaris:
00026 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/solaris.hpp"
00027 
00028 #elif defined(__sgi)
00029 // SGI Irix:
00030 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/irix.hpp"
00031 
00032 #elif defined(__hpux)
00033 // hp unix:
00034 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/hpux.hpp"
00035 
00036 #elif defined(__CYGWIN__)
00037 // cygwin is not win32:
00038 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/cygwin.hpp"
00039 
00040 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
00041 // win32:
00042 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/win32.hpp"
00043 
00044 #elif defined(__BEOS__)
00045 // BeOS
00046 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/beos.hpp"
00047 
00048 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
00049 // MacOS
00050 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/macos.hpp"
00051 
00052 #elif defined(__IBMCPP__) || defined(_AIX)
00053 // IBM
00054 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/aix.hpp"
00055 
00056 #elif defined(__amigaos__)
00057 // AmigaOS
00058 #  define BOOST_PLATFORM_CONFIG "sysc/packages/boost/config/platform/amigaos.hpp"
00059 
00060 #else
00061 
00062 #  if defined(unix) \
00063       || defined(__unix) \
00064       || defined(_XOPEN_SOURCE) \
00065       || defined(_POSIX_SOURCE)
00066 
00067    // generic unix platform:
00068 
00069 #  ifndef BOOST_HAS_UNISTD_H
00070 #     define BOOST_HAS_UNISTD_H
00071 #  endif
00072 
00073 #  include <sysc/packages/boost/config/posix_features.hpp>
00074 
00075 #  endif
00076 
00077 #  if defined (BOOST_ASSERT_CONFIG)
00078       // this must come last - generate an error if we don't
00079       // recognise the platform:
00080 #     error "Unknown platform - please configure and report the results to boost.org"
00081 #  endif
00082 
00083 #endif
00084 
00085 
00086 

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