libsmbios_c library
select_stdlib_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 Jens Maurer 2001 - 2002.
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 
10 // See http://www.boost.org for most recent version.
11 
12 // locate which std lib we are using and define LIBSMBIOS_STDLIB_CONFIG as needed:
13 
14 // we need to include a std lib header here in order to detect which
15 // library is in use, use <utility> as it's about the smallest
16 // of the std lib headers - do not rely on this header being included -
17 // users can short-circuit this header if they know whose std lib
18 // they are using.
19 
20 #include <utility>
21 
22 #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
23 // STLPort library; this _must_ come first, otherwise since
24 // STLport typically sits on top of some other library, we
25 // can end up detecting that first rather than STLport:
26 # define LIBSMBIOS_STDLIB_CONFIG "smbios/config/stdlib/stlport.hpp"
27 
28 #elif defined(__GLIBCPP__)
29 // GNU libstdc++ 3
30 # define LIBSMBIOS_STDLIB_CONFIG "smbios/config/stdlib/libstdcpp3.hpp"
31 
32 #elif defined( __GNUC__ )
33 // GNU libstdc++ < 3 ?? maybe there is a better test for this?
34 # define LIBSMBIOS_STDLIB_CONFIG "smbios/config/stdlib/libstdcpp2.hpp"
35 
36 #elif defined (LIBSMBIOS_ASSERT_CONFIG)
37 // this must come last - generate an error if we don't
38 // recognise the library:
39 # error "Unknown standard library - please configure and report the results to libsmbios maintainer."
40 
41 #endif
42 
43 
44