spandsp 0.0.6
|
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 #define INT16_MAX 0x7FFF 00037 #define INT16_MIN (-INT16_MAX - 1) 00038 00039 #if !defined(INFINITY) 00040 #define INFINITY 0x7FFFFFFF 00041 #endif 00042 00043 #define INT32_MAX (2147483647) 00044 #define INT32_MIN (-2147483647 - 1) 00045 00046 #define PRId8 "d" 00047 #define PRId16 "d" 00048 #define PRId32 "ld" 00049 #define PRId64 "lld" 00050 00051 #define PRIu8 "u" 00052 #define PRIu16 "u" 00053 #define PRIu32 "lu" 00054 #define PRIu64 "llu" 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif 00059 00060 #endif