Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

select_platform_config.hpp

Go to the documentation of this file.
00001 //  Boost compiler configuration selection header file
00002 
00003 //  (C) Copyright John Maddock 2001 - 2002. 
00004 //  (C) Copyright Jens Maurer 2001. 
00005 //  Use, modification and distribution are subject to the 
00006 //  Boost Software License, Version 1.0. (See accompanying file 
00007 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00008 
00009 //  See http://www.boost.org for most recent version.
00010 //
00011 //  Modified on 2004-03-28 for libsmbios by Michael Brown
00012 //    -- libsmbios only supports limited compiler and platform configs, so we
00013 //    have removed some of the compilers supported by boost. We can add a
00014 //    few back in if they are needed in the future (IBM, Metroworks, etc.)
00015 //
00016 //    To add new platform back in, please copy the relevant lines from boost.
00017 
00018 
00019 // locate which platform we are on and define LIBSMBIOS_PLATFORM_CONFIG as needed.
00020 // Note that we define the headers to include using "header_name" not
00021 // <header_name> in order to prevent macro expansion within the header
00022 // name (for example "linux" is a macro on linux systems).
00023 
00024 #if defined(linux) || defined(__linux) || defined(__linux__)
00025 // linux:
00026 #  define LIBSMBIOS_PLATFORM_CONFIG "smbios/config/platform/linux.hpp"
00027 
00028 #elif defined(_WIN64) || defined(__WIN64__) || defined(WIN64)
00029 // win64:
00030 #  define LIBSMBIOS_PLATFORM_CONFIG "smbios/config/platform/win64.hpp"
00031 
00032 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
00033 // win32:
00034 #  define LIBSMBIOS_PLATFORM_CONFIG "smbios/config/platform/win32.hpp"
00035 
00036 #else
00037 
00038 #  if defined (LIBSMBIOS_ASSERT_CONFIG)
00039       // this must come last - generate an error if we don't
00040       // recognise the platform:
00041 #     error "Unknown platform - please report to libsmbios maintainer."
00042 #  endif
00043 
00044 #endif
00045 
00046 
00047 

Generated on Wed Apr 11 16:25:10 2007 for SMBIOS Library by doxygen 1.3.5