Rudiments
/home/dmuse/src/rudiments/include/rudiments/private/inttypes.h
00001 // Copyright (c) 2005 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_INTTYPES_H
00005 #define RUDIMENTS_INTTYPES_H
00006 
00007 #include <rudiments/private/config.h>
00008 
00009 #if defined(RUDIMENTS_HAVE_STDINT_H)
00010         #include <stdint.h>
00011 #elif defined(RUDIMENTS_HAVE_SYS_BITYPES_H)
00012         // Tru64 needs __arch64__ for int64_t and uint64_t typedefs
00013         #ifndef __arch64__
00014                 #define __arch64__
00015         #endif
00016         #include <sys/bitypes.h>
00017 #elif defined(RUDIMENTS_HAVE_INTTYPES_H)
00018         #include <inttypes.h>
00019 #endif
00020 
00021 #ifndef RUDIMENTS_HAVE_INT8_T
00022         typedef signed char             int8_t;
00023 #endif
00024 #ifndef RUDIMENTS_HAVE_UINT8_T
00025         typedef unsigned char           uint8_t;
00026 #endif
00027 #ifndef RUDIMENTS_HAVE_INT16_T
00028         typedef signed short            int16_t;
00029 #endif
00030 #ifndef RUDIMENTS_HAVE_UINT16_T
00031         typedef unsigned short          uint16_t;
00032 #endif
00033 #ifndef RUDIMENTS_HAVE_INT32_T
00034         typedef signed int              int32_t;
00035 #endif
00036 #ifndef RUDIMENTS_HAVE_UINT32_T
00037         typedef unsigned int            uint32_t;
00038 #endif
00039 #ifndef RUDIMENTS_HAVE_INT64_T
00040         typedef signed long long        int64_t;
00041 #endif
00042 #ifndef RUDIMENTS_HAVE_UINT64_T
00043         typedef unsigned long long      uint64_t;
00044 #endif
00045 
00046 #endif