VirtualBox

source: vbox/trunk/src/libs/boost-1.37.0/boost/config/select_platform_config.hpp@ 18769

Last change on this file since 18769 was 16204, checked in by vboxsync, 16 years ago

export the boost stuff required for Main

File size: 2.6 KB
Line 
1// Boost compiler configuration selection header file
2
3// (C) Copyright John Maddock 2001 - 2002.
4// (C) Copyright Jens Maurer 2001.
5// Use, modification and distribution are subject to the
6// Boost Software License, Version 1.0. (See accompanying file
7// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9// See http://www.boost.org for most recent version.
10
11// locate which platform we are on and define BOOST_PLATFORM_CONFIG as needed.
12// Note that we define the headers to include using "header_name" not
13// <header_name> in order to prevent macro expansion within the header
14// name (for example "linux" is a macro on linux systems).
15
16#if defined(linux) || defined(__linux) || defined(__linux__)
17// linux:
18# define BOOST_PLATFORM_CONFIG "boost/config/platform/linux.hpp"
19
20#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
21// BSD:
22# define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp"
23
24#elif defined(sun) || defined(__sun)
25// solaris:
26# define BOOST_PLATFORM_CONFIG "boost/config/platform/solaris.hpp"
27
28#elif defined(__sgi)
29// SGI Irix:
30# define BOOST_PLATFORM_CONFIG "boost/config/platform/irix.hpp"
31
32#elif defined(__hpux)
33// hp unix:
34# define BOOST_PLATFORM_CONFIG "boost/config/platform/hpux.hpp"
35
36#elif defined(__CYGWIN__)
37// cygwin is not win32:
38# define BOOST_PLATFORM_CONFIG "boost/config/platform/cygwin.hpp"
39
40#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
41// win32:
42# define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp"
43
44#elif defined(__BEOS__)
45// BeOS
46# define BOOST_PLATFORM_CONFIG "boost/config/platform/beos.hpp"
47
48#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
49// MacOS
50# define BOOST_PLATFORM_CONFIG "boost/config/platform/macos.hpp"
51
52#elif defined(__IBMCPP__) || defined(_AIX)
53// IBM
54# define BOOST_PLATFORM_CONFIG "boost/config/platform/aix.hpp"
55
56#elif defined(__amigaos__)
57// AmigaOS
58# define BOOST_PLATFORM_CONFIG "boost/config/platform/amigaos.hpp"
59
60#elif defined(__QNXNTO__)
61// QNX:
62# define BOOST_PLATFORM_CONFIG "boost/config/platform/qnxnto.hpp"
63
64#else
65
66# if defined(unix) \
67 || defined(__unix) \
68 || defined(_XOPEN_SOURCE) \
69 || defined(_POSIX_SOURCE)
70
71 // generic unix platform:
72
73# ifndef BOOST_HAS_UNISTD_H
74# define BOOST_HAS_UNISTD_H
75# endif
76
77# include <boost/config/posix_features.hpp>
78
79# endif
80
81# if defined (BOOST_ASSERT_CONFIG)
82 // this must come last - generate an error if we don't
83 // recognise the platform:
84# error "Unknown platform - please configure and report the results to boost.org"
85# endif
86
87#endif
88
89
90
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette