libsmbios_c library
select_platform_config.h
Go to the documentation of this file.
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 // Modified on 2004-03-28 for libsmbios by Michael Brown
12 // -- libsmbios only supports limited compiler and platform configs, so we
13 // have removed some of the compilers supported by boost. We can add a
14 // few back in if they are needed in the future (IBM, Metroworks, etc.)
15 //
16 // To add new platform back in, please copy the relevant lines from boost.
17 
18 
19 // locate which platform we are on and define LIBSMBIOS_PLATFORM_CONFIG as needed.
20 // Note that we define the headers to include using "header_name" not
21 // <header_name> in order to prevent macro expansion within the header
22 // name (for example "linux" is a macro on linux systems).
23 
24 #if defined(linux) || defined(__linux) || defined(__linux__)
25 // linux:
26 # define LIBSMBIOS_C_PLATFORM_CONFIG "smbios_c/config/platform/linux.h"
27 
28 #elif defined(_WIN64) || defined(__WIN64__) || defined(WIN64)
29 // win64:
30 # define LIBSMBIOS_C_PLATFORM_CONFIG "smbios_c/config/platform/win64.h"
31 
32 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
33 // win32:
34 # define LIBSMBIOS_C_PLATFORM_CONFIG "smbios_c/config/platform/win32.h"
35 
36 #else
37 
38 # if defined (LIBSMBIOS_C_ASSERT_CONFIG)
39  // this must come last - generate an error if we don't
40  // recognise the platform:
41 # error "Unknown platform - please report to libsmbios maintainer."
42 # endif
43 
44 #endif
45 
46 
47