/home/lyrian/OggVorbis/kate/include/kate/kate_config.h

00001 /* Copyright (C) 2008 Vincent Penquerc'h.
00002    This file is part of the Kate codec library.
00003    Written by Vincent Penquerc'h.
00004 
00005    Use, distribution and reproduction of this library is governed
00006    by a BSD style source license included with this source in the
00007    file 'COPYING'. Please read these terms before distributing. */
00008 
00009 #ifndef _KATE_CONFIG_H_
00010 #define _KATE_CONFIG_H_
00011 
00012 #include <stddef.h>
00013 #include <limits.h>
00014 
00015 #ifdef HAVE_CONFIG_H
00016 #include "config.h"
00017 #endif
00018 
00019 #ifdef HAVE_INTTYPES_H
00020 #include <inttypes.h>
00021 #endif
00022 
00023 #ifdef HAVE_STDINT_H
00024 #include <stdint.h>
00025 #endif
00026 
00027 #ifdef KATE_INTERNAL
00028 #define kate_const
00029 #else
00030 #define kate_const const
00031 #endif
00032 
00033 #ifndef kate_malloc
00034 #define kate_malloc malloc
00035 #endif
00036 #ifndef kate_realloc
00037 #define kate_realloc realloc
00038 #endif
00039 #ifndef kate_free
00040 #define kate_free free
00041 #endif
00042 
00043 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00044 typedef int32_t kate_int32_t;
00045 #elif defined int32_t
00046 typedef int32_t kate_int32_t;
00047 #elif defined INT_MAX && INT_MAX==2147483647
00048 typedef int kate_int32_t;
00049 #elif defined SHRT_MAX && SHRT_MAX==2147483647
00050 typedef short int kate_int32_t;
00051 #elif defined LONG_MAX && LONG_MAX==2147483647
00052 typedef long int kate_int32_t;
00053 #elif defined LLONG_MAX && LLONG_MAX==2147483647
00054 typedef long long int kate_int32_t;
00055 #else
00056 #error No 32 bit signed integer found
00057 #endif
00058 
00059 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00060 typedef uint32_t kate_uint32_t;
00061 #elif defined uint32_t
00062 typedef uint32_t kate_uint32_t;
00063 #elif defined UINT_MAX && UINT_MAX==4294967295u
00064 typedef unsigned int kate_uint32_t;
00065 #elif defined USHRT_MAX && USHRT_MAX==4294967295u
00066 typedef short unsigned int kate_uint32_t;
00067 #elif defined ULONG_MAX && ULONG_MAX==4294967295ul
00068 typedef long unsigned int kate_uint32_t;
00069 #elif defined ULLONG_MAX && ULLONG_MAX==4294967295ull
00070 typedef long long unsigned int kate_uint32_t;
00071 #else
00072 #error No 32 bit unsigned integer found
00073 #endif
00074 
00075 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00076 typedef int64_t kate_int64_t;
00077 #elif defined int64_t
00078 typedef int64_t kate_int64_t;
00079 #elif defined INT_MAX && INT_MAX>2147483647
00080 typedef int kate_int64_t;
00081 #elif defined SHRT_MAX && SHRT_MAX>2147483647
00082 typedef short int kate_int64_t;
00083 #elif defined LONG_MAX && LONG_MAX>2147483647
00084 typedef long int kate_int64_t;
00085 #elif defined LLONG_MAX && LLONG_MAX>2147483647
00086 typedef long long int kate_int64_t;
00087 #else
00088 #error No 64 bit signed integer found
00089 #endif
00090 
00091 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00092 typedef uintptr_t kate_uintptr_t;
00093 #elif defined uintptr_t
00094 typedef uintptr_t kate_uintptr_t;
00095 #else
00096 typedef union { unsigned int i; void *p; } kate_uintptr_t;
00097 #endif
00098 
00099 typedef float kate_float;
00100 
00101 #endif
00102 

Generated on Wed Oct 1 23:18:29 2008 for libkate by  doxygen 1.5.4