00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 # if __GNUC__ == 2 && __GNUC_MINOR__ == 91
00017
00018 # define LIBSMBIOS_NO_AUTO_PTR
00019 # endif
00020 # if __GNUC__ == 2 && __GNUC_MINOR__ < 95
00021
00022
00023
00024
00025
00026 # define LIBSMBIOS_NO_MEMBER_TEMPLATES
00027 # if __GNUC_MINOR__ >= 9
00028 # define LIBSMBIOS_MSVC6_MEMBER_TEMPLATES
00029 # endif
00030 # endif
00031
00032 # if __GNUC__ == 2 && __GNUC_MINOR__ < 96
00033 # define LIBSMBIOS_NO_SFINAE
00034 # endif
00035
00036 # if __GNUC__ == 2 && __GNUC_MINOR__ <= 97
00037 # define LIBSMBIOS_NO_MEMBER_TEMPLATE_FRIENDS
00038 # define LIBSMBIOS_NO_OPERATORS_IN_NAMESPACE
00039 # endif
00040
00041 # if __GNUC__ < 3
00042 # define LIBSMBIOS_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
00043 # define LIBSMBIOS_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
00044 # endif
00045
00046 #ifndef __EXCEPTIONS
00047 # define LIBSMBIOS_NO_EXCEPTIONS
00048 #endif
00049
00050
00051 #define LIBSMBIOS_HAS_PRETTY_FUNCTION
00052 #define LIBSMBIOS_HAS_FUNCTION
00053 #define LIBSMBIOS_PACKED_ATTR __attribute__ ((packed))
00054
00055 #ifndef UNREFERENCED_PARAMETER
00056 #define UNREFERENCED_PARAMETER(P) ((void)(P))
00057 #endif
00058
00059 # if __GNUC__ > 4
00060
00061 #define MARK_UNUSED __attribute__ ((unused))
00062 #else
00063 #define MARK_UNUSED
00064 #endif
00065
00066 #define _dbg_iostream_out(stream, line) do { stream << line; } while(0)
00067 #define _dbg_cout(line) _dbg_iostream_out(cout, line)
00068 #define _dbg_cerr(line) _dbg_iostream_out(cerr, line)
00069 #define _null_call( args...) do {} while(0)
00070 #ifdef DEBUG_OUTPUT_ALL
00071 #include <iostream>
00072 #define DCOUT _dbg_cout
00073 #define DCERR _dbg_cerr
00074 #else
00075 #define DCOUT _null_call
00076 #define DCERR _null_call
00077 #endif
00078
00079
00080
00081
00082 #if (__GNUC__ == 3) && ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
00083 # define LIBSMBIOS_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
00084 #endif
00085
00086
00087
00088
00089
00090
00091 #if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
00092 # define LIBSMBIOS_HAS_THREADS
00093 #endif
00094
00095
00096
00097
00098 #define LIBSMBIOS_HAS_LONG_LONG
00099
00100
00101
00102
00103 #if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
00104 #define LIBSMBIOS_HAS_NRVO
00105 #endif
00106
00107 #define LIBSMBIOS_COMPILER "GNU C++ version " __VERSION__
00108
00109
00110
00111
00112 #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
00113 # error "Compiler not configured - please reconfigure"
00114 #endif
00115
00116
00117 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 3))
00118 # if defined(LIBSMBIOS_ASSERT_CONFIG)
00119 # error "Unknown compiler version - please run the configure tests and report the results"
00120 # else
00121 # warning "Unknown compiler version - please run the configure tests and report the results"
00122 # endif
00123 #endif
00124
00125