libsmbios_c library
|
00001 // (C) Copyright John Maddock 2001 - 2003. 00002 // (C) Copyright Darin Adler 2001 - 2002. 00003 // (C) Copyright Peter Dimov 2001. 00004 // (C) Copyright Aleksey Gurtovoy 2002. 00005 // (C) Copyright David Abrahams 2002 - 2003. 00006 // (C) Copyright Beman Dawes 2002 - 2003. 00007 // Use, modification and distribution are subject to the 00008 // Boost Software License, Version 1.0. (See accompanying file 00009 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00010 00011 // See http://www.boost.org for most recent version. 00012 00013 // Microsoft Visual C++ compiler setup: 00014 00015 #define LIBSMBIOS_C_MSVC _MSC_VER 00016 #define LIBSMBIOS_C_HAS_FUNCTION 00017 #define LIBSMBIOS_C_HAS_LONG_LONG 00018 #define LIBSMBIOS_C_HAS_DECLSPEC 00019 #define LIBSMBIOS_C_PACKED_ATTR 00020 00021 #ifndef _NATIVE_WCHAR_T_DEFINED 00022 # define LIBSMBIOS_C_NO_INTRINSIC_WCHAR_T 00023 #endif 00024 00025 // 00026 // prefix and suffix headers: 00027 // 00028 #ifndef LIBSMBIOS_C_ABI_PREFIX 00029 # define LIBSMBIOS_C_ABI_PREFIX "smbios_c/config/abi/msvc_prefix.h" 00030 #endif 00031 #ifndef LIBSMBIOS_C_ABI_SUFFIX 00032 # define LIBSMBIOS_C_ABI_SUFFIX "smbios_c/config/abi/msvc_suffix.h" 00033 #endif 00034 00035 #if _MSC_VER == 1310 00036 # define LIBSMBIOS_C_COMPILER_VERSION 7.1 00037 # elif _MSC_VER == 1400 00038 # define LIBSMBIOS_C_COMPILER_VERSION 8.0 00039 # elif _MSC_VER == 1500 00040 # define LIBSMBIOS_C_COMPILER_VERSION 9.0 00041 # else 00042 # define LIBSMBIOS_C_COMPILER_VERSION _MSC_VER 00043 #endif 00044 00045 #define LIBSMBIOS_C_COMPILER "Microsoft Visual C++ version " LIBSMBIOS_C_STRINGIZE(LIBSMBIOS_C_COMPILER_VERSION) 00046 00047 // 00048 // versions check: 00049 // we don't support Visual C++ prior to version 8: 00050 // need variadic macros 00051 #if _MSC_VER < 1400 00052 #error "Compiler looks ancient. Sorry but we dont support it MSVC++ prior to version 8.0." 00053 #endif 00054 // 00055 // last known and checked version is 1310: 00056 #if (_MSC_VER > 1500) 00057 # if defined(LIBSMBIOS_C_ASSERT_CONFIG) 00058 # error "Unknown compiler version - please run the configure tests and report the results" 00059 # else 00060 # pragma message("Unknown compiler version - please run the configure tests and report the results") 00061 # endif 00062 #endif