00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifdef HAVE_CONFIG_H
00012 #include "config.h"
00013 #endif
00014 #ifdef HAVE_STDINT_H
00015 #include <stdint.h>
00016 #else
00017
00018 #ifndef _STDINT_H
00019
00020 #include <features.h>
00021 #include <bits/wchar.h>
00022 #include <bits/wordsize.h>
00023 #if __WORDSIZE == 64
00024 # ifndef __intptr_t_defined
00025 typedef long int intptr_t;
00026 # define __intptr_t_defined
00027 # endif
00028 typedef unsigned long int uintptr_t;
00029 #else
00030 # ifndef __intptr_t_defined
00031 typedef int intptr_t;
00032 # define __intptr_t_defined
00033 # endif
00034 typedef unsigned int uintptr_t;
00035 #endif
00036 #ifndef __int8_t_defined
00037 # define __int8_t_defined
00038 typedef signed char int8_t;
00039 typedef short int int16_t;
00040 typedef int int32_t;
00041 # if __WORDSIZE == 64
00042 typedef long int int64_t;
00043 # else
00044 __extension__
00045 typedef long long int int64_t;
00046 # endif
00047 #endif
00048
00049
00050 typedef unsigned char uint8_t;
00051 typedef unsigned short int uint16_t;
00052 #ifndef __uint32_t_defined
00053 typedef unsigned int uint32_t;
00054 # define __uint32_t_defined
00055 #endif
00056 #if __WORDSIZE == 64
00057 typedef unsigned long int uint64_t;
00058 #else
00059 __extension__
00060 typedef unsigned long long int uint64_t;
00061 #endif
00062
00063 #endif // !_STDINT_H
00064 #endif // !HAVE_STDINT_H
00065