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 #define LIBSMBIOS_NO_STDC_NAMESPACE
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #ifndef LIBSMBIOS_HAS_PTHREADS
00048 # define LIBSMBIOS_HAS_WINTHREADS
00049 #endif
00050
00051 #ifndef LIBSMBIOS_DISABLE_WIN32
00052
00053 #define LIBSMBIOS_HAS_FTIME
00054
00055 #endif
00056
00057
00058
00059
00060 #ifdef min
00061 # undef min
00062 #endif
00063 #ifdef max
00064 # undef max
00065 #endif
00066 #ifndef NOMINMAX
00067 # define NOMINMAX
00068 #endif
00069
00070 #ifdef LIBSMBIOS_MSVC
00071 #include <algorithm>
00072 namespace std{
00073
00074
00075
00076
00077 inline long min(long __a, long __b) {
00078 return __b < __a ? __b : __a;
00079 }
00080 inline long max(long __a, long __b) {
00081 return __a < __b ? __b : __a;
00082 }
00083
00084
00085
00086 inline long double min(long double __a, long double __b) {
00087 return __b < __a ? __b : __a;
00088 }
00089 inline long double max(long double __a, long double __b) {
00090 return __a < __b ? __b : __a;
00091 }
00092 }
00093 using std::min;
00094 using std::max;
00095 # endif
00096
00097