00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 # if __SUNPRO_CC <= 0x500
00015 # define LIBSMBIOS_NO_MEMBER_TEMPLATES
00016 # define LIBSMBIOS_NO_FUNCTION_TEMPLATE_ORDERING
00017 # endif
00018
00019 # if (__SUNPRO_CC <= 0x520)
00020
00021
00022
00023
00024
00025
00026
00027 # define LIBSMBIOS_NO_INCLASS_MEMBER_INITIALIZATION
00028
00029
00030
00031
00032
00033
00034 # define LIBSMBIOS_NO_TEMPLATE_PARTIAL_SPECIALIZATION
00035 # endif
00036
00037 # if (__SUNPRO_CC <= 0x530)
00038
00039
00040
00041
00042
00043
00044 # define LIBSMBIOS_NO_INCLASS_MEMBER_INITIALIZATION
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 # define LIBSMBIOS_NO_INTEGRAL_INT64_T
00058 # endif
00059
00060 # if (__SUNPRO_CC < 0x570)
00061 # define LIBSMBIOS_NO_TEMPLATE_TEMPLATES
00062
00063
00064 # define LIBSMBIOS_NO_INCLASS_MEMBER_INITIALIZATION
00065 # define LIBSMBIOS_NO_SFINAE
00066 # define LIBSMBIOS_NO_ARRAY_TYPE_SPECIALIZATIONS
00067 # endif
00068 # if (__SUNPRO_CC <= 0x580)
00069 # define LIBSMBIOS_NO_IS_ABSTRACT
00070 # endif
00071
00072
00073
00074
00075 #define LIBSMBIOS_NO_TWO_PHASE_NAME_LOOKUP
00076 #define LIBSMBIOS_NO_ADL_BARRIER
00077
00078
00079
00080
00081
00082 #if(__SUNPRO_CC >= 0x590)
00083 # define LIBSMBIOS_HAS_LONG_LONG
00084 #else
00085 # define LIBSMBIOS_NO_LONG_LONG
00086 #endif
00087
00088 #define LIBSMBIOS_NO_AUTO_DECLARATIONS
00089 #define LIBSMBIOS_NO_AUTO_MULTIDECLARATIONS
00090 #define LIBSMBIOS_NO_CHAR16_T
00091 #define LIBSMBIOS_NO_CHAR32_T
00092 #define LIBSMBIOS_NO_CONCEPTS
00093 #define LIBSMBIOS_NO_CONSTEXPR
00094 #define LIBSMBIOS_NO_DECLTYPE
00095 #define LIBSMBIOS_NO_DEFAULTED_FUNCTIONS
00096 #define LIBSMBIOS_NO_DELETED_FUNCTIONS
00097 #define LIBSMBIOS_NO_EXPLICIT_CONVERSION_OPERATORS
00098 #define LIBSMBIOS_NO_EXTERN_TEMPLATE
00099 #define LIBSMBIOS_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
00100 #define LIBSMBIOS_NO_INITIALIZER_LISTS
00101 #define LIBSMBIOS_NO_LAMBDAS
00102 #define LIBSMBIOS_NO_NULLPTR
00103 #define LIBSMBIOS_NO_RAW_LITERALS
00104 #define LIBSMBIOS_NO_RVALUE_REFERENCES
00105 #define LIBSMBIOS_NO_SCOPED_ENUMS
00106 #define LIBSMBIOS_NO_SFINAE_EXPR
00107 #define LIBSMBIOS_NO_STATIC_ASSERT
00108 #define LIBSMBIOS_NO_TEMPLATE_ALIASES
00109 #define LIBSMBIOS_NO_UNICODE_LITERALS
00110 #define LIBSMBIOS_NO_VARIADIC_TEMPLATES
00111
00112
00113
00114
00115
00116 #define LIBSMBIOS_COMPILER "Sun compiler version " LIBSMBIOS_STRINGIZE(__SUNPRO_CC)
00117
00118
00119
00120
00121 #if __SUNPRO_CC < 0x400
00122 #error "Compiler not supported or configured - please reconfigure"
00123 #endif
00124
00125
00126 #if (__SUNPRO_CC > 0x590)
00127 # if defined(LIBSMBIOS_ASSERT_CONFIG)
00128 # error "Unknown compiler version - please run the configure tests and report the results"
00129 # endif
00130 #endif
00131
00132 #ifndef UNREFERENCED_PARAMETER
00133 #define UNREFERENCED_PARAMETER(P) ((void)(P))
00134 #endif
00135
00136 #define LIBSMBIOS_PACKED_ATTR __attribute__ ((packed))
00137
00138 #define _dbg_iostream_out(stream, line) do { stream << line; } while(0)
00139 #define _dbg_cout(line) _dbg_iostream_out(cout, line)
00140 #define _dbg_cerr(line) _dbg_iostream_out(cerr, line)
00141 #define _null_call( args...) do {} while(0)
00142 #ifdef DEBUG_OUTPUT_ALL
00143 #include <iostream>
00144 #define DCOUT _dbg_cout
00145 #define DCERR _dbg_cerr
00146 #else
00147 #define DCOUT _null_call
00148 #define DCERR _null_call
00149 #endif
00150
00151 #define MARK_UNUSED __attribute__((unused))