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 #ifndef FSEEK
00029 #define FSEEK(fh, pos, whence) fseeko(fh, static_cast<off_t>(pos), whence)
00030 #endif
00031
00032
00033
00034
00035
00036 #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1)))
00037
00038
00039
00040 # if defined __GNUC__
00041 # define LIBSMBIOS_HAS_STDINT_H
00042 # endif
00043 #endif
00044
00045 #if defined(__LIBCOMO__)
00046
00047
00048
00049
00050
00051 # if __LIBCOMO_VERSION__ <= 20
00052 # define LIBSMBIOS_NO_STDC_NAMESPACE
00053 # endif
00054
00055 # if __LIBCOMO_VERSION__ <= 21
00056 # define LIBSMBIOS_NO_SWPRINTF
00057 # endif
00058
00059 #endif
00060
00061
00062
00063
00064
00065 #if defined(__GLIBC__) && (__GLIBC__ >= 2)
00066 # define LIBSMBIOS_HAS_GETTIMEOFDAY
00067 #endif
00068
00069 #ifdef __USE_POSIX199309
00070 # define LIBSMBIOS_HAS_NANOSLEEP
00071 #endif
00072
00073 #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
00074
00075
00076
00077 # if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98))
00078 # define LIBSMBIOS_NO_SWPRINTF
00079 # endif
00080 #else
00081 # define LIBSMBIOS_NO_SWPRINTF
00082 #endif
00083
00084
00085 #define LIBSMBIOS_HAS_UNISTD_H
00086 #include <smbios/config/posix_features.hpp>
00087
00088 #ifndef __GNUC__
00089
00090
00091
00092
00093
00094 # ifndef __extension__
00095 # define __extension__
00096 # endif
00097 # ifndef __const__
00098 # define __const__ const
00099 # endif
00100 # ifndef __volatile__
00101 # define __volatile__ volatile
00102 # endif
00103 # ifndef __signed__
00104 # define __signed__ signed
00105 # endif
00106 # ifndef __typeof__
00107 # define __typeof__ typeof
00108 # endif
00109 # ifndef __inline__
00110 # define __inline__ inline
00111 # endif
00112 #endif
00113
00114