/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_ATTRIBUTE
00044 #define __attribute__(x)
00045 #endif
00046 
00047 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00048 typedef int32_t kate_int32_t;
00049 #elif defined int32_t
00050 typedef int32_t kate_int32_t;
00051 #elif defined INT_MAX && INT_MAX==2147483647
00052 typedef int kate_int32_t;
00053 #elif defined SHRT_MAX && SHRT_MAX==2147483647
00054 typedef short int kate_int32_t;
00055 #elif defined LONG_MAX && LONG_MAX==2147483647
00056 typedef long int kate_int32_t;
00057 #elif defined LLONG_MAX && LLONG_MAX==2147483647
00058 typedef long long int kate_int32_t;
00059 #else
00060 #error No 32 bit signed integer found
00061 #endif
00062 
00063 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00064 typedef int64_t kate_int64_t;
00065 #elif defined int64_t
00066 typedef int64_t kate_int64_t;
00067 #elif defined INT_MAX && INT_MAX>2147483647
00068 typedef int kate_int64_t;
00069 #elif defined SHRT_MAX && SHRT_MAX>2147483647
00070 typedef short int kate_int64_t;
00071 #elif defined LONG_MAX && LONG_MAX>2147483647
00072 typedef long int kate_int64_t;
00073 #elif defined LLONG_MAX && LLONG_MAX>2147483647
00074 typedef long long int kate_int64_t;
00075 #else
00076 #error No 64 bit signed integer found
00077 #endif
00078 
00079 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
00080 typedef uintptr_t kate_uintptr_t;
00081 #elif defined uintptr_t
00082 typedef uintptr_t kate_uintptr_t;
00083 #else
00084 #warning No suitable type for holding integer and pointer found, using unsigned long
00085 typedef unsigned long kate_uintptr_t;
00086 #endif
00087 
00088 typedef float kate_float;
00089 
00090 #endif
00091 

Generated on Sun Aug 31 23:00:10 2008 for libkate by  doxygen 1.5.4