libsmbios_c library
select_compiler_config.h
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_C_COMPILER_CONFIG "smbios_c/config/compiler/gcc.h"
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_C_COMPILER_CONFIG "smbios_c/config/compiler/visualc.h"
33
34#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
35// Sun Studio Compiler
36#define LIBSMBIOS_C_COMPILER_CONFIG "smbios_c/config/compiler/sunpro_cc.h"
37
38#elif defined (LIBSMBIOS_C_ASSERT_CONFIG)
39// this must come last - generate an error if we don't
40// recognise the compiler:
41# error "Unknown compiler - please report to libsmbios maintainer."
42
43#endif