00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef SU_TYPES_H
00026
00027 #define SU_TYPES_H
00028
00036 #ifndef SU_CONFIG_H
00037 #include "sofia-sip/su_config.h"
00038 #endif
00039
00040 #if SU_HAVE_STDINT
00041 #include <stdint.h>
00042 #elif SU_HAVE_INTTYPES
00043 #include <inttypes.h>
00044 #endif
00045
00046 #if SU_HAVE_SYS_TYPES
00047 #include <sys/types.h>
00048 #endif
00049
00050 #include <stddef.h>
00051
00052 SOFIA_BEGIN_DECLS
00053
00054 #if SU_HAVE_STDINT || SU_HAVE_INTTYPES
00055 #define SU_S64_T int64_t
00056 #define SU_U64_T uint64_t
00057 #define SU_S32_T int32_t
00058 #define SU_U32_T uint32_t
00059 #define SU_S16_T int16_t
00060 #define SU_U16_T uint16_t
00061 #define SU_S8_T int8_t
00062 #define SU_U8_T uint8_t
00063 #define SU_LEAST64_T int_least64_t
00064 #define SU_LEAST32_T int_least32_t
00065 #define SU_LEAST16_T int_least16_t
00066 #define SU_LEAST8_T int_least8_t
00067 #elif SU_HAVE_WIN32 || DOCUMENTATION_ONLY
00068
00069
00071 typedef SU_INTPTR_T intptr_t;
00073 typedef SU_U64_T uint64_t;
00075 typedef SU_S64_T int64_t;
00077 typedef SU_U32_T uint32_t;
00079 typedef SU_S32_T int32_t;
00081 typedef SU_U16_T uint16_t;
00083 typedef SU_S16_T int16_t;
00085 typedef SU_U8_T uint8_t;
00087 typedef SU_S8_T int8_t;
00088
00090 typedef SU_LEAST64_T int_least64_t;
00092 typedef SU_LEAST32_T int_least32_t;
00094 typedef SU_LEAST16_T int_least16_t;
00096 typedef SU_LEAST8_T int_least8_t;
00097 #else
00098 #error "no integer types available."
00099 #endif
00100
00101 SOFIA_END_DECLS
00102
00103 #endif