libsmbios_c library
select_compiler_config.hpp
Go to the documentation of this file.
1 // Boost compiler configuration selection header file
2 
3 // (C) Copyright John Maddock 2001 - 2003.
4 // (C) Copyright Martin Wille 2003.
5 // (C) Copyright Guillaume Melquiond 2003.
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 // Modified on 2004-03-28 for libsmbios by Michael Brown
13 // -- libsmbios only supports limited compiler and platform configs, so we
14 // have removed some of the compilers supported by boost. We can add a
15 // few back in if they are needed in the future (IBM, Metroworks, etc.)
16 //
17 // To add new compiler back in, please copy the relevant lines from boost.
18 
19 
20 // locate which compiler we are using and define
21 // LIBSMBIOS_COMPILER_CONFIG as needed:
22 
23 # if defined __GNUC__
24 // GNU C++:
25 # define LIBSMBIOS_COMPILER_CONFIG "smbios/config/compiler/gcc.hpp"
26 
27 #elif defined _MSC_VER
28 // Microsoft Visual C++
29 //
30 // Must remain the last #elif since some other vendors (Metrowerks, for
31 // example) also #define _MSC_VER
32 # define LIBSMBIOS_COMPILER_CONFIG "smbios/config/compiler/visualc.hpp"
33 #elif defined __SUNPRO_CC
34 // Sun Studio Compiler
35 #define LIBSMBIOS_COMPILER_CONFIG "smbios/config/compiler/sunpro_cc.hpp"
36 
37 #elif defined (LIBSMBIOS_ASSERT_CONFIG)
38 // this must come last - generate an error if we don't
39 // recognise the compiler:
40 # error "Unknown compiler - please report to libsmbios maintainer."
41 
42 #endif