hk_stdint.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
00003 // This file is part of the hk_classes library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file COPYING included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
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 /* Unsigned.  */
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 

Generated on Tue Nov 28 02:48:08 2006 for Databaseconnectionclasses by  doxygen 1.5.0