00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #define LIBSMBIOS_PLATFORM "linux"
00012 #define LIBSMBIOS_PLATFORM_LINUX
00013
00014
00015
00016
00017
00018
00019 #include <cstdlib>
00020
00021
00022 #if defined(__ia64__)
00023 # define outb_p outb
00024 # define inb_p inb
00025 #endif
00026
00027
00028 #define FSEEK(fh, pos, whence) fseeko(fh, static_cast<off_t>(pos), whence)
00029
00030
00031
00032
00033
00034 #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)))
00035
00036
00037
00038 # if defined __GNUC__
00039 # define LIBSMBIOS_HAS_STDINT_H
00040 # endif
00041 #endif
00042
00043 #if defined(__LIBCOMO__)
00044
00045
00046
00047
00048
00049 # if __LIBCOMO_VERSION__ <= 20
00050 # define LIBSMBIOS_NO_STDC_NAMESPACE
00051 # endif
00052
00053 # if __LIBCOMO_VERSION__ <= 21
00054 # define LIBSMBIOS_NO_SWPRINTF
00055 # endif
00056
00057 #endif
00058
00059
00060
00061
00062
00063 #if defined(__GLIBC__) && (__GLIBC__ >= 2)
00064 # define LIBSMBIOS_HAS_GETTIMEOFDAY
00065 #endif
00066
00067 #ifdef __USE_POSIX199309
00068 # define LIBSMBIOS_HAS_NANOSLEEP
00069 #endif
00070
00071 #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
00072
00073
00074
00075 # if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
00076 # define LIBSMBIOS_NO_SWPRINTF
00077 # endif
00078 #else
00079 # define LIBSMBIOS_NO_SWPRINTF
00080 #endif
00081
00082
00083 #define LIBSMBIOS_HAS_UNISTD_H
00084 #include <smbios/config/posix_features.hpp>
00085
00086 #ifndef __GNUC__
00087
00088
00089
00090
00091
00092 # ifndef __extension__
00093 # define __extension__
00094 # endif
00095 # ifndef __const__
00096 # define __const__ const
00097 # endif
00098 # ifndef __volatile__
00099 # define __volatile__ volatile
00100 # endif
00101 # ifndef __signed__
00102 # define __signed__ signed
00103 # endif
00104 # ifndef __typeof__
00105 # define __typeof__ typeof
00106 # endif
00107 # ifndef __inline__
00108 # define __inline__ inline
00109 # endif
00110 #endif
00111
00112