<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libsmbios_c library: /builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios/config/suffix.hpp Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <h1>/builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios/config/suffix.hpp</h1> </div> </div> <div class="contents"> <a href="suffix_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Boost config.hpp configuration header file ------------------------------//</span> <a name="l00002"></a>00002 <a name="l00003"></a>00003 <span class="comment">// (C) Copyright John Maddock 2001 - 2003. </span> <a name="l00004"></a>00004 <span class="comment">// (C) Copyright Darin Adler 2001. </span> <a name="l00005"></a>00005 <span class="comment">// (C) Copyright Peter Dimov 2001. </span> <a name="l00006"></a>00006 <span class="comment">// (C) Copyright Bill Kempf 2002. </span> <a name="l00007"></a>00007 <span class="comment">// (C) Copyright Jens Maurer 2002. </span> <a name="l00008"></a>00008 <span class="comment">// (C) Copyright David Abrahams 2002 - 2003. </span> <a name="l00009"></a>00009 <span class="comment">// (C) Copyright Gennaro Prota 2003. </span> <a name="l00010"></a>00010 <span class="comment">// (C) Copyright Eric Friedman 2003. </span> <a name="l00011"></a>00011 <span class="comment">// Use, modification and distribution are subject to the </span> <a name="l00012"></a>00012 <span class="comment">// Boost Software License, Version 1.0. (See accompanying file </span> <a name="l00013"></a>00013 <span class="comment">// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)</span> <a name="l00014"></a>00014 <a name="l00015"></a>00015 <span class="comment">// See http://www.boost.org for most recent version.</span> <a name="l00016"></a>00016 <a name="l00017"></a>00017 <span class="comment">// Boost config.hpp policy and rationale documentation has been moved to</span> <a name="l00018"></a>00018 <span class="comment">// http://www.boost.org/libs/config</span> <a name="l00019"></a>00019 <span class="comment">//</span> <a name="l00020"></a>00020 <span class="comment">// This file is intended to be stable, and relatively unchanging.</span> <a name="l00021"></a>00021 <span class="comment">// It should contain boilerplate code only - no compiler specific</span> <a name="l00022"></a>00022 <span class="comment">// code unless it is unavoidable - no changes unless unavoidable.</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#ifndef LIBSMBIOS_CONFIG_SUFFIX_HPP</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define LIBSMBIOS_CONFIG_SUFFIX_HPP</span> <a name="l00026"></a>00026 <span class="preprocessor"></span> <a name="l00027"></a>00027 <span class="comment">//</span> <a name="l00028"></a>00028 <span class="comment">// look for long long by looking for the appropriate macros in <limits.h>.</span> <a name="l00029"></a>00029 <span class="comment">// Note that we use limits.h rather than climits for maximal portability,</span> <a name="l00030"></a>00030 <span class="comment">// remember that since these just declare a bunch of macros, there should be</span> <a name="l00031"></a>00031 <span class="comment">// no namespace issues from this.</span> <a name="l00032"></a>00032 <span class="comment">//</span> <a name="l00033"></a>00033 <span class="preprocessor">#include <limits.h></span> <a name="l00034"></a>00034 <span class="preprocessor"># if !defined(LIBSMBIOS_HAS_LONG_LONG) \</span> <a name="l00035"></a>00035 <span class="preprocessor"> && !(defined(LIBSMBIOS_MSVC) && LIBSMBIOS_MSVC <=1300) && !defined(__BORLANDC__) \</span> <a name="l00036"></a>00036 <span class="preprocessor"> && (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))</span> <a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_HAS_LONG_LONG</span> <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#if !defined(LIBSMBIOS_HAS_LONG_LONG) && !defined(LIBSMBIOS_NO_INTEGRAL_INT64_T)</span> <a name="l00040"></a><a class="code" href="suffix_8hpp.html#a02e1ca8515d5c0bff4b136834986ba0e">00040</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_INTEGRAL_INT64_T</span> <a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00042"></a>00042 <span class="preprocessor"></span> <a name="l00043"></a>00043 <span class="comment">// GCC 3.x will clean up all of those nasty macro definitions that</span> <a name="l00044"></a>00044 <span class="comment">// LIBSMBIOS_NO_CTYPE_FUNCTIONS is intended to help work around, so undefine</span> <a name="l00045"></a>00045 <span class="comment">// it under GCC 3.x.</span> <a name="l00046"></a>00046 <span class="preprocessor">#if defined(__GNUC__) && (__GNUC__ >= 3) && defined(LIBSMBIOS_NO_CTYPE_FUNCTIONS)</span> <a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_NO_CTYPE_FUNCTIONS</span> <a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00049"></a>00049 <span class="preprocessor"></span> <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="comment">//</span> <a name="l00052"></a>00052 <span class="comment">// Assume any extensions are in namespace std:: unless stated otherwise:</span> <a name="l00053"></a>00053 <span class="comment">//</span> <a name="l00054"></a>00054 <span class="preprocessor"># ifndef LIBSMBIOS_STD_EXTENSION_NAMESPACE</span> <a name="l00055"></a><a class="code" href="suffix_8hpp.html#a887421b31056975f9f1af490cced82ae">00055</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_STD_EXTENSION_NAMESPACE std</span> <a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00057"></a>00057 <span class="preprocessor"></span> <a name="l00058"></a>00058 <span class="comment">//</span> <a name="l00059"></a>00059 <span class="comment">// If cv-qualified specializations are not allowed, then neither are cv-void ones:</span> <a name="l00060"></a>00060 <span class="comment">//</span> <a name="l00061"></a>00061 <span class="preprocessor"># if defined(LIBSMBIOS_NO_CV_SPECIALIZATIONS) \</span> <a name="l00062"></a>00062 <span class="preprocessor"> && !defined(LIBSMBIOS_NO_CV_VOID_SPECIALIZATIONS)</span> <a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_CV_VOID_SPECIALIZATIONS</span> <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00065"></a>00065 <span class="preprocessor"></span> <a name="l00066"></a>00066 <span class="comment">//</span> <a name="l00067"></a>00067 <span class="comment">// If there is no numeric_limits template, then it can't have any compile time</span> <a name="l00068"></a>00068 <span class="comment">// constants either!</span> <a name="l00069"></a>00069 <span class="comment">//</span> <a name="l00070"></a>00070 <span class="preprocessor"># if defined(LIBSMBIOS_NO_LIMITS) \</span> <a name="l00071"></a>00071 <span class="preprocessor"> && !defined(LIBSMBIOS_NO_LIMITS_COMPILE_TIME_CONSTANTS)</span> <a name="l00072"></a>00072 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_LIMITS_COMPILE_TIME_CONSTANTS</span> <a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_MS_INT64_NUMERIC_LIMITS</span> <a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_LONG_LONG_NUMERIC_LIMITS</span> <a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00076"></a>00076 <span class="preprocessor"></span> <a name="l00077"></a>00077 <span class="comment">//</span> <a name="l00078"></a>00078 <span class="comment">// if there is no long long then there is no specialisation</span> <a name="l00079"></a>00079 <span class="comment">// for numeric_limits<long long> either:</span> <a name="l00080"></a>00080 <span class="comment">//</span> <a name="l00081"></a>00081 <span class="preprocessor">#if !defined(LIBSMBIOS_HAS_LONG_LONG) && !defined(LIBSMBIOS_NO_LONG_LONG_NUMERIC_LIMITS)</span> <a name="l00082"></a><a class="code" href="suffix_8hpp.html#a2eefc56f76ff723e75b61084797ac3aa">00082</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_LONG_LONG_NUMERIC_LIMITS</span> <a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00084"></a>00084 <span class="preprocessor"></span> <a name="l00085"></a>00085 <span class="comment">//</span> <a name="l00086"></a>00086 <span class="comment">// if there is no __int64 then there is no specialisation</span> <a name="l00087"></a>00087 <span class="comment">// for numeric_limits<__int64> either:</span> <a name="l00088"></a>00088 <span class="comment">//</span> <a name="l00089"></a>00089 <span class="preprocessor">#if !defined(LIBSMBIOS_HAS_MS_INT64) && !defined(LIBSMBIOS_NO_MS_INT64_NUMERIC_LIMITS)</span> <a name="l00090"></a><a class="code" href="suffix_8hpp.html#af6fb4e5f9f23822976f903795f7d179f">00090</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_MS_INT64_NUMERIC_LIMITS</span> <a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00092"></a>00092 <span class="preprocessor"></span> <a name="l00093"></a>00093 <span class="comment">//</span> <a name="l00094"></a>00094 <span class="comment">// if member templates are supported then so is the</span> <a name="l00095"></a>00095 <span class="comment">// VC6 subset of member templates:</span> <a name="l00096"></a>00096 <span class="comment">//</span> <a name="l00097"></a>00097 <span class="preprocessor"># if !defined(LIBSMBIOS_NO_MEMBER_TEMPLATES) \</span> <a name="l00098"></a>00098 <span class="preprocessor"> && !defined(LIBSMBIOS_MSVC6_MEMBER_TEMPLATES)</span> <a name="l00099"></a><a class="code" href="suffix_8hpp.html#ac42ec3c019f8c782ef740aac9e7d9fa3">00099</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_MSVC6_MEMBER_TEMPLATES</span> <a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00101"></a>00101 <span class="preprocessor"></span> <a name="l00102"></a>00102 <span class="comment">//</span> <a name="l00103"></a>00103 <span class="comment">// Without partial specialization, can't test for partial specialisation bugs:</span> <a name="l00104"></a>00104 <span class="comment">//</span> <a name="l00105"></a>00105 <span class="preprocessor"># if defined(LIBSMBIOS_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \</span> <a name="l00106"></a>00106 <span class="preprocessor"> && !defined(LIBSMBIOS_BCB_PARTIAL_SPECIALIZATION_BUG)</span> <a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_BCB_PARTIAL_SPECIALIZATION_BUG</span> <a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00109"></a>00109 <span class="preprocessor"></span> <a name="l00110"></a>00110 <span class="comment">//</span> <a name="l00111"></a>00111 <span class="comment">// Without partial specialization, we can't have array-type partial specialisations:</span> <a name="l00112"></a>00112 <span class="comment">//</span> <a name="l00113"></a>00113 <span class="preprocessor"># if defined(LIBSMBIOS_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \</span> <a name="l00114"></a>00114 <span class="preprocessor"> && !defined(LIBSMBIOS_NO_ARRAY_TYPE_SPECIALIZATIONS)</span> <a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_ARRAY_TYPE_SPECIALIZATIONS</span> <a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00117"></a>00117 <span class="preprocessor"></span> <a name="l00118"></a>00118 <span class="comment">//</span> <a name="l00119"></a>00119 <span class="comment">// Without partial specialization, std::iterator_traits can't work:</span> <a name="l00120"></a>00120 <span class="comment">//</span> <a name="l00121"></a>00121 <span class="preprocessor"># if defined(LIBSMBIOS_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \</span> <a name="l00122"></a>00122 <span class="preprocessor"> && !defined(LIBSMBIOS_NO_STD_ITERATOR_TRAITS)</span> <a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_STD_ITERATOR_TRAITS</span> <a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00125"></a>00125 <span class="preprocessor"></span> <a name="l00126"></a>00126 <span class="comment">//</span> <a name="l00127"></a>00127 <span class="comment">// Without member template support, we can't have template constructors</span> <a name="l00128"></a>00128 <span class="comment">// in the standard library either:</span> <a name="l00129"></a>00129 <span class="comment">//</span> <a name="l00130"></a>00130 <span class="preprocessor"># if defined(LIBSMBIOS_NO_MEMBER_TEMPLATES) \</span> <a name="l00131"></a>00131 <span class="preprocessor"> && !defined(LIBSMBIOS_MSVC6_MEMBER_TEMPLATES) \</span> <a name="l00132"></a>00132 <span class="preprocessor"> && !defined(LIBSMBIOS_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)</span> <a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_TEMPLATED_ITERATOR_CONSTRUCTORS</span> <a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00135"></a>00135 <span class="preprocessor"></span> <a name="l00136"></a>00136 <span class="comment">//</span> <a name="l00137"></a>00137 <span class="comment">// Without member template support, we can't have a conforming</span> <a name="l00138"></a>00138 <span class="comment">// std::allocator template either:</span> <a name="l00139"></a>00139 <span class="comment">//</span> <a name="l00140"></a>00140 <span class="preprocessor"># if defined(LIBSMBIOS_NO_MEMBER_TEMPLATES) \</span> <a name="l00141"></a>00141 <span class="preprocessor"> && !defined(LIBSMBIOS_MSVC6_MEMBER_TEMPLATES) \</span> <a name="l00142"></a>00142 <span class="preprocessor"> && !defined(LIBSMBIOS_NO_STD_ALLOCATOR)</span> <a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_STD_ALLOCATOR</span> <a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00145"></a>00145 <span class="preprocessor"></span> <a name="l00146"></a>00146 <span class="comment">//</span> <a name="l00147"></a>00147 <span class="comment">// without ADL support then using declarations will break ADL as well:</span> <a name="l00148"></a>00148 <span class="comment">//</span> <a name="l00149"></a>00149 <span class="preprocessor">#if defined(LIBSMBIOS_NO_ARGUMENT_DEPENDENT_LOOKUP) && !defined(LIBSMBIOS_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)</span> <a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL</span> <a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00152"></a>00152 <span class="preprocessor"></span> <a name="l00153"></a>00153 <span class="comment">//</span> <a name="l00154"></a>00154 <span class="comment">// If we have a standard allocator, then we have a partial one as well:</span> <a name="l00155"></a>00155 <span class="comment">//</span> <a name="l00156"></a>00156 <span class="preprocessor">#if !defined(LIBSMBIOS_NO_STD_ALLOCATOR)</span> <a name="l00157"></a><a class="code" href="suffix_8hpp.html#abe08be420768ca8a1753e52e81dfd486">00157</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_HAS_PARTIAL_STD_ALLOCATOR</span> <a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00159"></a>00159 <span class="preprocessor"></span> <a name="l00160"></a>00160 <span class="comment">//</span> <a name="l00161"></a>00161 <span class="comment">// We can't have a working std::use_facet if there is no std::locale:</span> <a name="l00162"></a>00162 <span class="comment">//</span> <a name="l00163"></a>00163 <span class="preprocessor"># if defined(LIBSMBIOS_NO_STD_LOCALE) && !defined(LIBSMBIOS_NO_STD_USE_FACET)</span> <a name="l00164"></a>00164 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_STD_USE_FACET</span> <a name="l00165"></a>00165 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00166"></a>00166 <span class="preprocessor"></span> <a name="l00167"></a>00167 <span class="comment">//</span> <a name="l00168"></a>00168 <span class="comment">// We can't have a std::messages facet if there is no std::locale:</span> <a name="l00169"></a>00169 <span class="comment">//</span> <a name="l00170"></a>00170 <span class="preprocessor"># if defined(LIBSMBIOS_NO_STD_LOCALE) && !defined(LIBSMBIOS_NO_STD_MESSAGES)</span> <a name="l00171"></a>00171 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_STD_MESSAGES</span> <a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00173"></a>00173 <span class="preprocessor"></span> <a name="l00174"></a>00174 <span class="comment">//</span> <a name="l00175"></a>00175 <span class="comment">// We can't have a working std::wstreambuf if there is no std::locale:</span> <a name="l00176"></a>00176 <span class="comment">//</span> <a name="l00177"></a>00177 <span class="preprocessor"># if defined(LIBSMBIOS_NO_STD_LOCALE) && !defined(LIBSMBIOS_NO_STD_WSTREAMBUF)</span> <a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_STD_WSTREAMBUF</span> <a name="l00179"></a>00179 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00180"></a>00180 <span class="preprocessor"></span> <a name="l00181"></a>00181 <span class="comment">//</span> <a name="l00182"></a>00182 <span class="comment">// We can't have a <cwctype> if there is no <cwchar>:</span> <a name="l00183"></a>00183 <span class="comment">//</span> <a name="l00184"></a>00184 <span class="preprocessor"># if defined(LIBSMBIOS_NO_CWCHAR) && !defined(LIBSMBIOS_NO_CWCTYPE)</span> <a name="l00185"></a>00185 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_CWCTYPE</span> <a name="l00186"></a>00186 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00187"></a>00187 <span class="preprocessor"></span> <a name="l00188"></a>00188 <span class="comment">//</span> <a name="l00189"></a>00189 <span class="comment">// We can't have a swprintf if there is no <cwchar>:</span> <a name="l00190"></a>00190 <span class="comment">//</span> <a name="l00191"></a>00191 <span class="preprocessor"># if defined(LIBSMBIOS_NO_CWCHAR) && !defined(LIBSMBIOS_NO_SWPRINTF)</span> <a name="l00192"></a>00192 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_SWPRINTF</span> <a name="l00193"></a>00193 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00194"></a>00194 <span class="preprocessor"></span> <a name="l00195"></a>00195 <span class="comment">//</span> <a name="l00196"></a>00196 <span class="comment">// If Win32 support is turned off, then we must turn off</span> <a name="l00197"></a>00197 <span class="comment">// threading support also, unless there is some other</span> <a name="l00198"></a>00198 <span class="comment">// thread API enabled:</span> <a name="l00199"></a>00199 <span class="comment">//</span> <a name="l00200"></a>00200 <span class="preprocessor">#if defined(LIBSMBIOS_DISABLE_WIN32) && defined(_WIN32) \</span> <a name="l00201"></a>00201 <span class="preprocessor"> && !defined(LIBSMBIOS_DISABLE_THREADS) && !defined(LIBSMBIOS_HAS_PTHREADS)</span> <a name="l00202"></a>00202 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_DISABLE_THREADS</span> <a name="l00203"></a>00203 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00204"></a>00204 <span class="preprocessor"></span> <a name="l00205"></a>00205 <span class="comment">//</span> <a name="l00206"></a>00206 <span class="comment">// Turn on threading support if the compiler thinks that it's in</span> <a name="l00207"></a>00207 <span class="comment">// multithreaded mode. We put this here because there are only a</span> <a name="l00208"></a>00208 <span class="comment">// limited number of macros that identify this (if there's any missing</span> <a name="l00209"></a>00209 <span class="comment">// from here then add to the appropriate compiler section):</span> <a name="l00210"></a>00210 <span class="comment">//</span> <a name="l00211"></a>00211 <span class="preprocessor">#if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \</span> <a name="l00212"></a>00212 <span class="preprocessor"> || defined(_PTHREADS)) && !defined(LIBSMBIOS_HAS_THREADS)</span> <a name="l00213"></a>00213 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_HAS_THREADS</span> <a name="l00214"></a>00214 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00215"></a>00215 <span class="preprocessor"></span> <a name="l00216"></a>00216 <span class="comment">//</span> <a name="l00217"></a>00217 <span class="comment">// Turn threading support off if LIBSMBIOS_DISABLE_THREADS is defined:</span> <a name="l00218"></a>00218 <span class="comment">//</span> <a name="l00219"></a>00219 <span class="preprocessor">#if defined(LIBSMBIOS_DISABLE_THREADS) && defined(LIBSMBIOS_HAS_THREADS)</span> <a name="l00220"></a>00220 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_THREADS</span> <a name="l00221"></a>00221 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00222"></a>00222 <span class="preprocessor"></span> <a name="l00223"></a>00223 <span class="comment">//</span> <a name="l00224"></a>00224 <span class="comment">// Turn threading support off if we don't recognise the threading API:</span> <a name="l00225"></a>00225 <span class="comment">//</span> <a name="l00226"></a>00226 <span class="preprocessor">#if defined(LIBSMBIOS_HAS_THREADS) && !defined(LIBSMBIOS_HAS_PTHREADS)\</span> <a name="l00227"></a>00227 <span class="preprocessor"> && !defined(LIBSMBIOS_HAS_WINTHREADS) && !defined(LIBSMBIOS_HAS_BETHREADS)\</span> <a name="l00228"></a>00228 <span class="preprocessor"> && !defined(LIBSMBIOS_HAS_MPTASKS)</span> <a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_THREADS</span> <a name="l00230"></a>00230 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00231"></a>00231 <span class="preprocessor"></span> <a name="l00232"></a>00232 <span class="comment">//</span> <a name="l00233"></a>00233 <span class="comment">// Turn threading detail macros off if we don't (want to) use threading</span> <a name="l00234"></a>00234 <span class="comment">//</span> <a name="l00235"></a>00235 <span class="preprocessor">#ifndef LIBSMBIOS_HAS_THREADS</span> <a name="l00236"></a>00236 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_PTHREADS</span> <a name="l00237"></a>00237 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_PTHREAD_MUTEXATTR_SETTYPE</span> <a name="l00238"></a>00238 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_WINTHREADS</span> <a name="l00239"></a>00239 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_BETHREADS</span> <a name="l00240"></a>00240 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_MPTASKS</span> <a name="l00241"></a>00241 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00242"></a>00242 <span class="preprocessor"></span> <a name="l00243"></a>00243 <span class="comment">//</span> <a name="l00244"></a>00244 <span class="comment">// If the compiler claims to be C99 conformant, then it had better</span> <a name="l00245"></a>00245 <span class="comment">// have a <stdint.h>:</span> <a name="l00246"></a>00246 <span class="comment">//</span> <a name="l00247"></a>00247 <span class="preprocessor"># if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)</span> <a name="l00248"></a>00248 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_HAS_STDINT_H</span> <a name="l00249"></a>00249 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00250"></a>00250 <span class="preprocessor"></span> <a name="l00251"></a>00251 <span class="comment">//</span> <a name="l00252"></a>00252 <span class="comment">// Define LIBSMBIOS_NO_SLIST and LIBSMBIOS_NO_HASH if required.</span> <a name="l00253"></a>00253 <span class="comment">// Note that this is for backwards compatibility only.</span> <a name="l00254"></a>00254 <span class="comment">//</span> <a name="l00255"></a>00255 <span class="preprocessor"># ifndef LIBSMBIOS_HAS_SLIST</span> <a name="l00256"></a><a class="code" href="suffix_8hpp.html#ac6e6a55179dd5a6cb99c88c17ad3974b">00256</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_SLIST</span> <a name="l00257"></a>00257 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00258"></a>00258 <span class="preprocessor"></span> <a name="l00259"></a>00259 <span class="preprocessor"># ifndef LIBSMBIOS_HAS_HASH</span> <a name="l00260"></a><a class="code" href="suffix_8hpp.html#a67587bbb727acff3a4726d338deb8668">00260</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NO_HASH</span> <a name="l00261"></a>00261 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00262"></a>00262 <span class="preprocessor"></span> <a name="l00263"></a>00263 <span class="comment">// LIBSMBIOS_HAS_ABI_HEADERS</span> <a name="l00264"></a>00264 <span class="comment">// This macro gets set if we have headers that fix the ABI,</span> <a name="l00265"></a>00265 <span class="comment">// and prevent ODR violations when linking to external libraries:</span> <a name="l00266"></a>00266 <span class="preprocessor">#if defined(LIBSMBIOS_ABI_PREFIX) && defined(LIBSMBIOS_ABI_SUFFIX) && !defined(LIBSMBIOS_HAS_ABI_HEADERS)</span> <a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_HAS_ABI_HEADERS</span> <a name="l00268"></a>00268 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00269"></a>00269 <span class="preprocessor"></span> <a name="l00270"></a>00270 <span class="preprocessor">#if defined(LIBSMBIOS_HAS_ABI_HEADERS) && defined(LIBSMBIOS_DISABLE_ABI_HEADERS)</span> <a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor"># undef LIBSMBIOS_HAS_ABI_HEADERS</span> <a name="l00272"></a>00272 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00273"></a>00273 <span class="preprocessor"></span> <a name="l00274"></a>00274 <span class="comment">// LIBSMBIOS_NO_STDC_NAMESPACE workaround --------------------------------------//</span> <a name="l00275"></a>00275 <span class="comment">// Because std::size_t usage is so common, even in headers which do not</span> <a name="l00276"></a>00276 <span class="comment">// otherwise use the C library, the <cstddef> workaround is included here so</span> <a name="l00277"></a>00277 <span class="comment">// that ugly workaround code need not appear in many other boost headers.</span> <a name="l00278"></a>00278 <span class="comment">// NOTE WELL: This is a workaround for non-conforming compilers; <cstddef> </span> <a name="l00279"></a>00279 <span class="comment">// must still be #included in the usual places so that <cstddef> inclusion</span> <a name="l00280"></a>00280 <span class="comment">// works as expected with standard conforming compilers. The resulting</span> <a name="l00281"></a>00281 <span class="comment">// double inclusion of <cstddef> is harmless.</span> <a name="l00282"></a>00282 <a name="l00283"></a>00283 <span class="preprocessor"># ifdef LIBSMBIOS_NO_STDC_NAMESPACE</span> <a name="l00284"></a>00284 <span class="preprocessor"></span><span class="preprocessor"># include <cstddef></span> <a name="l00285"></a>00285 <span class="keyword">namespace </span>std { using ::ptrdiff_t; using ::size_t; } <a name="l00286"></a>00286 <span class="preprocessor"># endif</span> <a name="l00287"></a>00287 <span class="preprocessor"></span> <a name="l00288"></a>00288 <span class="comment">// LIBSMBIOS_NO_STD_MIN_MAX workaround -----------------------------------------//</span> <a name="l00289"></a>00289 <a name="l00290"></a>00290 <span class="preprocessor"># ifdef LIBSMBIOS_NO_STD_MIN_MAX</span> <a name="l00291"></a>00291 <span class="preprocessor"></span> <a name="l00292"></a>00292 <span class="keyword">namespace </span>std { <a name="l00293"></a>00293 <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <a name="l00294"></a>00294 <span class="keyword">inline</span> <span class="keyword">const</span> _Tp& min(<span class="keyword">const</span> _Tp& __a, <span class="keyword">const</span> _Tp& __b) { <a name="l00295"></a>00295 <span class="keywordflow">return</span> __b < __a ? __b : __a; <a name="l00296"></a>00296 } <a name="l00297"></a>00297 <span class="keyword">template</span> <<span class="keyword">class</span> _Tp> <a name="l00298"></a>00298 <span class="keyword">inline</span> <span class="keyword">const</span> _Tp& max(<span class="keyword">const</span> _Tp& __a, <span class="keyword">const</span> _Tp& __b) { <a name="l00299"></a>00299 <span class="keywordflow">return</span> __a < __b ? __b : __a; <a name="l00300"></a>00300 } <a name="l00301"></a>00301 } <a name="l00302"></a>00302 <a name="l00303"></a>00303 <span class="preprocessor"># endif</span> <a name="l00304"></a>00304 <span class="preprocessor"></span> <a name="l00305"></a>00305 <span class="comment">// LIBSMBIOS_STATIC_CONSTANT workaround --------------------------------------- //</span> <a name="l00306"></a>00306 <span class="comment">// On compilers which don't allow in-class initialization of static integral</span> <a name="l00307"></a>00307 <span class="comment">// constant members, we must use enums as a workaround if we want the constants</span> <a name="l00308"></a>00308 <span class="comment">// to be available at compile-time. This macro gives us a convenient way to</span> <a name="l00309"></a>00309 <span class="comment">// declare such constants.</span> <a name="l00310"></a>00310 <a name="l00311"></a>00311 <span class="preprocessor"># ifdef LIBSMBIOS_NO_INCLASS_MEMBER_INITIALIZATION</span> <a name="l00312"></a>00312 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_STATIC_CONSTANT(type, assignment) enum { assignment }</span> <a name="l00313"></a>00313 <span class="preprocessor"></span><span class="preprocessor"># else</span> <a name="l00314"></a><a class="code" href="suffix_8hpp.html#ad2f98ad073613d4f2fe39f4f98116e80">00314</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_STATIC_CONSTANT(type, assignment) static const type assignment</span> <a name="l00315"></a>00315 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00316"></a>00316 <span class="preprocessor"></span> <a name="l00317"></a>00317 <span class="comment">// LIBSMBIOS_USE_FACET workaround ----------------------------------------------//</span> <a name="l00318"></a>00318 <span class="comment">// When the standard library does not have a conforming std::use_facet there</span> <a name="l00319"></a>00319 <span class="comment">// are various workarounds available, but they differ from library to library.</span> <a name="l00320"></a>00320 <span class="comment">// This macro provides a consistent way to access a locale's facets.</span> <a name="l00321"></a>00321 <span class="comment">// Usage:</span> <a name="l00322"></a>00322 <span class="comment">// replace</span> <a name="l00323"></a>00323 <span class="comment">// std::use_facet<Type>(loc);</span> <a name="l00324"></a>00324 <span class="comment">// with</span> <a name="l00325"></a>00325 <span class="comment">// LIBSMBIOS_USE_FACET(Type, loc);</span> <a name="l00326"></a>00326 <span class="comment">// Note do not add a std:: prefix to the front of LIBSMBIOS_USE_FACET!</span> <a name="l00327"></a>00327 <a name="l00328"></a>00328 <span class="preprocessor">#if defined(LIBSMBIOS_NO_STD_USE_FACET)</span> <a name="l00329"></a>00329 <span class="preprocessor"></span><span class="preprocessor"># ifdef LIBSMBIOS_HAS_TWO_ARG_USE_FACET</span> <a name="l00330"></a>00330 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_USE_FACET(Type, loc) std::use_facet(loc, static_cast<Type*>(0))</span> <a name="l00331"></a>00331 <span class="preprocessor"></span><span class="preprocessor"># elif defined(LIBSMBIOS_HAS_MACRO_USE_FACET)</span> <a name="l00332"></a>00332 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_USE_FACET(Type, loc) std::_USE(loc, Type)</span> <a name="l00333"></a>00333 <span class="preprocessor"></span><span class="preprocessor"># elif defined(LIBSMBIOS_HAS_STLP_USE_FACET)</span> <a name="l00334"></a>00334 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_USE_FACET(Type, loc) (*std::_Use_facet<Type >(loc))</span> <a name="l00335"></a>00335 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00336"></a>00336 <span class="preprocessor"></span><span class="preprocessor">#else</span> <a name="l00337"></a><a class="code" href="suffix_8hpp.html#a139254ed0a176c81ec5a672c185cbef9">00337</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_USE_FACET(Type, loc) std::use_facet< Type >(loc)</span> <a name="l00338"></a>00338 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00339"></a>00339 <span class="preprocessor"></span> <a name="l00340"></a>00340 <span class="comment">// LIBSMBIOS_NESTED_TEMPLATE workaround ------------------------------------------//</span> <a name="l00341"></a>00341 <span class="comment">// Member templates are supported by some compilers even though they can't use</span> <a name="l00342"></a>00342 <span class="comment">// the A::template member<U> syntax, as a workaround replace:</span> <a name="l00343"></a>00343 <span class="comment">//</span> <a name="l00344"></a>00344 <span class="comment">// typedef typename A::template rebind<U> binder;</span> <a name="l00345"></a>00345 <span class="comment">//</span> <a name="l00346"></a>00346 <span class="comment">// with:</span> <a name="l00347"></a>00347 <span class="comment">//</span> <a name="l00348"></a>00348 <span class="comment">// typedef typename A::LIBSMBIOS_NESTED_TEMPLATE rebind<U> binder;</span> <a name="l00349"></a>00349 <a name="l00350"></a>00350 <span class="preprocessor">#ifndef LIBSMBIOS_NO_MEMBER_TEMPLATE_KEYWORD</span> <a name="l00351"></a><a class="code" href="suffix_8hpp.html#a85b4b123fcf7428fd1b4573dfb477273">00351</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NESTED_TEMPLATE template</span> <a name="l00352"></a>00352 <span class="preprocessor"></span><span class="preprocessor">#else</span> <a name="l00353"></a>00353 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_NESTED_TEMPLATE</span> <a name="l00354"></a>00354 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00355"></a>00355 <span class="preprocessor"></span> <a name="l00356"></a>00356 <span class="comment">// LIBSMBIOS_UNREACHABLE_RETURN(x) workaround -------------------------------------//</span> <a name="l00357"></a>00357 <span class="comment">// Normally evaluates to nothing, unless LIBSMBIOS_NO_UNREACHABLE_RETURN_DETECTION</span> <a name="l00358"></a>00358 <span class="comment">// is defined, in which case it evaluates to return x; Use when you have a return</span> <a name="l00359"></a>00359 <span class="comment">// statement that can never be reached.</span> <a name="l00360"></a>00360 <a name="l00361"></a>00361 <span class="preprocessor">#ifdef LIBSMBIOS_NO_UNREACHABLE_RETURN_DETECTION</span> <a name="l00362"></a>00362 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_UNREACHABLE_RETURN(x) return x;</span> <a name="l00363"></a>00363 <span class="preprocessor"></span><span class="preprocessor">#else</span> <a name="l00364"></a><a class="code" href="suffix_8hpp.html#ad4d01de0abed81afd8d905d766680fc2">00364</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_UNREACHABLE_RETURN(x)</span> <a name="l00365"></a>00365 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00366"></a>00366 <span class="preprocessor"></span> <a name="l00367"></a>00367 <span class="comment">// LIBSMBIOS_DEDUCED_TYPENAME workaround ------------------------------------------//</span> <a name="l00368"></a>00368 <span class="comment">//</span> <a name="l00369"></a>00369 <span class="comment">// Some compilers don't support the use of `typename' for dependent</span> <a name="l00370"></a>00370 <span class="comment">// types in deduced contexts, e.g.</span> <a name="l00371"></a>00371 <span class="comment">//</span> <a name="l00372"></a>00372 <span class="comment">// template <class T> void f(T, typename T::type);</span> <a name="l00373"></a>00373 <span class="comment">// ^^^^^^^^</span> <a name="l00374"></a>00374 <span class="comment">// Replace these declarations with:</span> <a name="l00375"></a>00375 <span class="comment">//</span> <a name="l00376"></a>00376 <span class="comment">// template <class T> void f(T, LIBSMBIOS_DEDUCED_TYPENAME T::type);</span> <a name="l00377"></a>00377 <a name="l00378"></a>00378 <span class="preprocessor">#ifndef LIBSMBIOS_NO_DEDUCED_TYPENAME</span> <a name="l00379"></a><a class="code" href="suffix_8hpp.html#abe96201541af07612a4b1bf7e4345739">00379</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_DEDUCED_TYPENAME typename</span> <a name="l00380"></a>00380 <span class="preprocessor"></span><span class="preprocessor">#else </span> <a name="l00381"></a>00381 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_DEDUCED_TYPENAME</span> <a name="l00382"></a>00382 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00383"></a>00383 <span class="preprocessor"></span> <a name="l00384"></a>00384 <span class="comment">// LIBSMBIOS_[APPEND_]EXPLICIT_TEMPLATE_[NON_]TYPE macros --------------------------//</span> <a name="l00385"></a>00385 <span class="comment">//</span> <a name="l00386"></a>00386 <span class="comment">// Some compilers have problems with function templates whose</span> <a name="l00387"></a>00387 <span class="comment">// template parameters don't appear in the function parameter</span> <a name="l00388"></a>00388 <span class="comment">// list (basically they just link one instantiation of the</span> <a name="l00389"></a>00389 <span class="comment">// template in the final executable). These macros provide a</span> <a name="l00390"></a>00390 <span class="comment">// uniform way to cope with the problem with no effects on the</span> <a name="l00391"></a>00391 <span class="comment">// calling syntax.</span> <a name="l00392"></a>00392 <a name="l00393"></a>00393 <span class="comment">// Example:</span> <a name="l00394"></a>00394 <span class="comment">//</span> <a name="l00395"></a>00395 <span class="comment">// #include <iostream></span> <a name="l00396"></a>00396 <span class="comment">// #include <ostream></span> <a name="l00397"></a>00397 <span class="comment">// #include <typeinfo></span> <a name="l00398"></a>00398 <span class="comment">//</span> <a name="l00399"></a>00399 <span class="comment">// template <int n></span> <a name="l00400"></a>00400 <span class="comment">// void f() { std::cout << n << ' '; }</span> <a name="l00401"></a>00401 <span class="comment">//</span> <a name="l00402"></a>00402 <span class="comment">// template <typename T></span> <a name="l00403"></a>00403 <span class="comment">// void g() { std::cout << typeid(T).name() << ' '; }</span> <a name="l00404"></a>00404 <span class="comment">//</span> <a name="l00405"></a>00405 <span class="comment">// int main() {</span> <a name="l00406"></a>00406 <span class="comment">// f<1>();</span> <a name="l00407"></a>00407 <span class="comment">// f<2>();</span> <a name="l00408"></a>00408 <span class="comment">//</span> <a name="l00409"></a>00409 <span class="comment">// g<int>();</span> <a name="l00410"></a>00410 <span class="comment">// g<double>();</span> <a name="l00411"></a>00411 <span class="comment">// }</span> <a name="l00412"></a>00412 <span class="comment">//</span> <a name="l00413"></a>00413 <span class="comment">// With VC++ 6.0 the output is:</span> <a name="l00414"></a>00414 <span class="comment">//</span> <a name="l00415"></a>00415 <span class="comment">// 2 2 double double</span> <a name="l00416"></a>00416 <span class="comment">//</span> <a name="l00417"></a>00417 <span class="comment">// To fix it, write</span> <a name="l00418"></a>00418 <span class="comment">//</span> <a name="l00419"></a>00419 <span class="comment">// template <int n></span> <a name="l00420"></a>00420 <span class="comment">// void f(LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE(int, n)) { ... }</span> <a name="l00421"></a>00421 <span class="comment">//</span> <a name="l00422"></a>00422 <span class="comment">// template <typename T></span> <a name="l00423"></a>00423 <span class="comment">// void g(LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE(T)) { ... }</span> <a name="l00424"></a>00424 <span class="comment">//</span> <a name="l00425"></a>00425 <a name="l00426"></a>00426 <a name="l00427"></a>00427 <span class="comment">// Don't think we need the following boost constructs for libsmbios</span> <a name="l00428"></a>00428 <span class="comment">//#if defined LIBSMBIOS_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS</span> <a name="l00429"></a>00429 <span class="comment">//</span> <a name="l00430"></a>00430 <span class="comment">//# include "smbios/type.hpp"</span> <a name="l00431"></a>00431 <span class="comment">//# include "smbios/non_type.hpp"</span> <a name="l00432"></a>00432 <span class="comment">//</span> <a name="l00433"></a>00433 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE(t) smbios::type<t>* = 0</span> <a name="l00434"></a>00434 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE_SPEC(t) smbios::type<t>*</span> <a name="l00435"></a>00435 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE(t, v) smbios::non_type<t, v>* = 0</span> <a name="l00436"></a>00436 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) smbios::non_type<t, v>*</span> <a name="l00437"></a>00437 <span class="comment">//</span> <a name="l00438"></a>00438 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_TYPE(t) , LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE(t)</span> <a name="l00439"></a>00439 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t) , LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE_SPEC(t)</span> <a name="l00440"></a>00440 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v) , LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE(t, v)</span> <a name="l00441"></a>00441 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) , LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)</span> <a name="l00442"></a>00442 <span class="comment">//</span> <a name="l00443"></a>00443 <span class="comment">//#else</span> <a name="l00444"></a>00444 <span class="comment">//</span> <a name="l00446"></a>00446 <span class="comment"></span><span class="comment">//</span> <a name="l00447"></a>00447 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE(t)</span> <a name="l00448"></a>00448 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_TYPE_SPEC(t)</span> <a name="l00449"></a>00449 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE(t, v)</span> <a name="l00450"></a>00450 <span class="comment">//# define LIBSMBIOS_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)</span> <a name="l00451"></a>00451 <span class="comment">//</span> <a name="l00452"></a>00452 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_TYPE(t)</span> <a name="l00453"></a>00453 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t)</span> <a name="l00454"></a>00454 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v)</span> <a name="l00455"></a>00455 <span class="comment">//# define LIBSMBIOS_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)</span> <a name="l00456"></a>00456 <span class="comment">//</span> <a name="l00457"></a>00457 <span class="comment">//</span> <a name="l00458"></a>00458 <span class="comment">//#endif // defined LIBSMBIOS_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS</span> <a name="l00459"></a>00459 <a name="l00460"></a>00460 <a name="l00461"></a>00461 <span class="comment">// ---------------------------------------------------------------------------//</span> <a name="l00462"></a>00462 <a name="l00463"></a>00463 <span class="comment">//</span> <a name="l00464"></a>00464 <span class="comment">// Helper macro LIBSMBIOS_STRINGIZE:</span> <a name="l00465"></a>00465 <span class="comment">// Converts the parameter X to a string after macro replacement</span> <a name="l00466"></a>00466 <span class="comment">// on X has been performed.</span> <a name="l00467"></a>00467 <span class="comment">//</span> <a name="l00468"></a><a class="code" href="suffix_8hpp.html#a44717ef88ef7abb70085e7a96c632480">00468</a> <span class="preprocessor">#define LIBSMBIOS_STRINGIZE(X) LIBSMBIOS_DO_STRINGIZE(X)</span> <a name="l00469"></a><a class="code" href="suffix_8hpp.html#a876bc1c71bf22036b471884396f34307">00469</a> <span class="preprocessor"></span><span class="preprocessor">#define LIBSMBIOS_DO_STRINGIZE(X) #X</span> <a name="l00470"></a>00470 <span class="preprocessor"></span> <a name="l00471"></a>00471 <span class="comment">//</span> <a name="l00472"></a>00472 <span class="comment">// Helper macro LIBSMBIOS_JOIN:</span> <a name="l00473"></a>00473 <span class="comment">// The following piece of macro magic joins the two </span> <a name="l00474"></a>00474 <span class="comment">// arguments together, even when one of the arguments is</span> <a name="l00475"></a>00475 <span class="comment">// itself a macro (see 16.3.1 in C++ standard). The key</span> <a name="l00476"></a>00476 <span class="comment">// is that macro expansion of macro arguments does not</span> <a name="l00477"></a>00477 <span class="comment">// occur in LIBSMBIOS_DO_JOIN2 but does in LIBSMBIOS_DO_JOIN.</span> <a name="l00478"></a>00478 <span class="comment">//</span> <a name="l00479"></a><a class="code" href="suffix_8hpp.html#aa722ee613b9c6b58bed7686336589291">00479</a> <span class="preprocessor">#define LIBSMBIOS_JOIN( X, Y ) LIBSMBIOS_DO_JOIN( X, Y )</span> <a name="l00480"></a><a class="code" href="suffix_8hpp.html#a3629f85f00e5a41881b17164e8e35dee">00480</a> <span class="preprocessor"></span><span class="preprocessor">#define LIBSMBIOS_DO_JOIN( X, Y ) LIBSMBIOS_DO_JOIN2(X,Y)</span> <a name="l00481"></a><a class="code" href="suffix_8hpp.html#a9bce6daf79397d6d92cae67f6ae1a886">00481</a> <span class="preprocessor"></span><span class="preprocessor">#define LIBSMBIOS_DO_JOIN2( X, Y ) X##Y</span> <a name="l00482"></a>00482 <span class="preprocessor"></span> <a name="l00483"></a>00483 <span class="comment">//</span> <a name="l00484"></a>00484 <span class="comment">// Set some default values for compiler/library/platform names.</span> <a name="l00485"></a>00485 <span class="comment">// These are for debugging config setup only:</span> <a name="l00486"></a>00486 <span class="comment">//</span> <a name="l00487"></a>00487 <span class="preprocessor"># ifndef LIBSMBIOS_COMPILER</span> <a name="l00488"></a><a class="code" href="suffix_8hpp.html#a465b59f673530639a0d838354d6fac50">00488</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_COMPILER "Unknown ISO C++ Compiler"</span> <a name="l00489"></a>00489 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00490"></a>00490 <span class="preprocessor"></span><span class="preprocessor"># ifndef LIBSMBIOS_STDLIB</span> <a name="l00491"></a><a class="code" href="suffix_8hpp.html#ab2c5841c0431a5cd588d8c9a9a0f7479">00491</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_STDLIB "Unknown ISO standard library"</span> <a name="l00492"></a>00492 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00493"></a>00493 <span class="preprocessor"></span><span class="preprocessor"># ifndef LIBSMBIOS_PLATFORM</span> <a name="l00494"></a>00494 <span class="preprocessor"></span><span class="preprocessor"># if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) \</span> <a name="l00495"></a>00495 <span class="preprocessor"> || defined(_POSIX_SOURCE)</span> <a name="l00496"></a>00496 <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_PLATFORM "Generic Unix"</span> <a name="l00497"></a>00497 <span class="preprocessor"></span><span class="preprocessor"># else</span> <a name="l00498"></a><a class="code" href="suffix_8hpp.html#afcc079eba8831e1afe272a13bb6d9db3">00498</a> <span class="preprocessor"></span><span class="preprocessor"># define LIBSMBIOS_PLATFORM "Unknown"</span> <a name="l00499"></a>00499 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00500"></a>00500 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00501"></a>00501 <span class="preprocessor"></span> <a name="l00502"></a>00502 <span class="preprocessor">#endif</span> <a name="l00503"></a>00503 <span class="preprocessor"></span> <a name="l00504"></a>00504 <a name="l00505"></a>00505 </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Oct 5 2010 for libsmbios_c library by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>