inttypes.h

00001 /*
00002  * SpanDSP - a series of DSP components for telephony
00003  *
00004  * inttypes.h - a fudge for MSVC, which lacks this header
00005  *
00006  * Written by Steve Underwood <steveu@coppice.org>
00007  *
00008  * Copyright (C) 2006 Michael Jerris
00009  *
00010  *
00011  * This file is released in the public domain.
00012  *
00013  */
00014 
00015 #if !defined(_INTTYPES_H_)
00016 #define _INTTYPES_H_
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 typedef __int8                  __int8_t;
00023 typedef __int16                 __int16_t;
00024 typedef __int32                 __int32_t;
00025 typedef __int64                 __int64_t;
00026 
00027 typedef unsigned __int8         uint8_t;
00028 typedef unsigned __int16        uint16_t;
00029 typedef unsigned __int32        uint32_t;
00030 typedef unsigned __int64    uint64_t;
00031 typedef __int8                  int8_t;
00032 typedef __int16                 int16_t;
00033 typedef __int32                 int32_t;
00034 typedef __int64                 int64_t;
00035 
00036 #if !defined(INFINITY)
00037 #define INFINITY 0x7FFFFFFF
00038 #endif
00039 
00040 #if !defined(UINT8_MAX)
00041 #define UINT8_MAX   0xFF
00042 #endif
00043 #if !defined(UINT16_MAX)
00044 #define UINT16_MAX  0xFFFF
00045 #endif
00046 
00047 #if !defined(INT16_MAX)
00048 #define INT16_MAX   0x7FFF 
00049 #endif
00050 #if !defined(INT16_MIN)
00051 #define INT16_MIN   (-INT16_MAX - 1) 
00052 #endif
00053 
00054 #if !defined(INT32_MAX)
00055 #define INT32_MAX       (2147483647)
00056 #endif
00057 #if !defined(INT32_MIN)
00058 #define INT32_MIN       (-2147483647 - 1)
00059 #endif
00060 
00061 #define PRId8 "d"
00062 #define PRId16 "d"
00063 #define PRId32 "ld"
00064 #define PRId64 "lld"
00065 
00066 #define PRIu8 "u"
00067 #define PRIu16 "u"
00068 #define PRIu32 "lu"
00069 #define PRIu64 "llu"
00070 
00071 #ifdef __cplusplus
00072 }
00073 #endif
00074 
00075 #endif

Generated on Fri Nov 18 15:02:25 2011 for spandsp by  doxygen 1.4.7