00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #define LIBSMBIOS_PLATFORM "Win32"
00013 #define LIBSMBIOS_PLATFORM_WIN32
00014
00015
00016
00017 #define LIBSMBIOS_HAS_ARCH_TABLE_CLASS
00018
00019
00020 #define FSEEK(fh, pos, whence) fseek(fh, static_cast<long>(pos), whence)
00021
00022 #if defined(__GNUC__) && !defined(LIBSMBIOS_NO_SWPRINTF)
00023 # define LIBSMBIOS_NO_SWPRINTF
00024 #endif
00025
00026 #if !defined(__GNUC__) && !defined(LIBSMBIOS_HAS_DECLSPEC)
00027 # define LIBSMBIOS_HAS_DECLSPEC
00028 #endif
00029
00030 #if defined(__MINGW32__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 2)))
00031 # define LIBSMBIOS_HAS_STDINT_H
00032 # define __STDC_LIMIT_MACROS
00033 #endif
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 #ifndef LIBSMBIOS_HAS_PTHREADS
00045 # define LIBSMBIOS_HAS_WINTHREADS
00046 #endif
00047
00048 #ifndef LIBSMBIOS_DISABLE_WIN32
00049
00050 #define LIBSMBIOS_HAS_FTIME
00051
00052 #endif
00053
00054
00055
00056
00057 #ifdef min
00058 # undef min
00059 #endif
00060 #ifdef max
00061 # undef max
00062 #endif
00063 #ifndef NOMINMAX
00064 # define NOMINMAX
00065 #endif
00066
00067 #ifdef LIBSMBIOS_MSVC
00068 #include <algorithm>
00069 namespace std{
00070
00071
00072
00073
00074 inline long min(long __a, long __b) {
00075 return __b < __a ? __b : __a;
00076 }
00077 inline long max(long __a, long __b) {
00078 return __a < __b ? __b : __a;
00079 }
00080
00081
00082
00083 inline long double min(long double __a, long double __b) {
00084 return __b < __a ? __b : __a;
00085 }
00086 inline long double max(long double __a, long double __b) {
00087 return __a < __b ? __b : __a;
00088 }
00089 }
00090 using std::min;
00091 using std::max;
00092 # endif
00093
00094