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