1 // Boost compiler configuration selection header file
3 // (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
4 // distribute this software is granted provided this copyright notice appears
5 // in all copies. This software is provided "as is" without express or implied
6 // warranty, and with no claim as to its suitability for any purpose.
8 // See http://www.boost.org for most recent version.
10 // locate which platform we are on and define BOOST_PLATFORM_CONFIG as needed.
11 // Note that we define the headers to include using "header_name" not
12 // <header_name> in order to prevent macro expansion within the header
13 // name (for example "linux" is a macro on linux systems).
15 #if defined(linux) || defined(__linux) || defined(__linux__)
17 # define BOOST_PLATFORM_CONFIG "boost/config/platform/linux.hpp"
19 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
21 # define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp"
23 #elif defined(sun) || defined(__sun)
25 # define BOOST_PLATFORM_CONFIG "boost/config/platform/solaris.hpp"
29 # define BOOST_PLATFORM_CONFIG "boost/config/platform/irix.hpp"
33 # define BOOST_PLATFORM_CONFIG "boost/config/platform/hpux.hpp"
35 #elif defined(__CYGWIN__)
36 // cygwin is not win32:
37 # define BOOST_PLATFORM_CONFIG "boost/config/platform/cygwin.hpp"
39 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
41 # define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp"
43 #elif defined(__BEOS__)
45 # define BOOST_PLATFORM_CONFIG "boost/config/platform/beos.hpp"
47 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
49 # define BOOST_PLATFORM_CONFIG "boost/config/platform/macos.hpp"
51 #elif defined(__IBMCPP__)
53 # define BOOST_PLATFORM_CONFIG "boost/config/platform/aix.hpp"
55 #elif defined(__amigaos__)
57 # define BOOST_PLATFORM_CONFIG "boost/config/platform/amigaos.hpp"
63 || defined(_XOPEN_SOURCE) \
64 || defined(_POSIX_SOURCE)
66 // generic unix platform:
68 # ifndef BOOST_HAS_UNISTD_H
69 # define BOOST_HAS_UNISTD_H
72 # include <boost/config/posix_features.hpp>
76 # if defined (BOOST_ASSERT_CONFIG)
77 // this must come last - generate an error if we don't
78 // recognise the platform:
79 # error "Unknown platform - please configure and report the results to boost.org"