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 unsigned __int8 uint8_t; 00023 typedef unsigned __int16 uint16_t; 00024 typedef unsigned __int32 uint32_t; 00025 typedef unsigned __int64 uint64_t; 00026 typedef __int8 int8_t; 00027 typedef __int16 int16_t; 00028 typedef __int32 int32_t; 00029 typedef __int64 int64_t; 00030 00031 #define INT16_MAX 0x7fff 00032 #define INT16_MIN (-INT16_MAX - 1) 00033 00034 #if !defined(INFINITY) 00035 #define INFINITY 0x7fffffff 00036 #endif 00037 00038 #define INT32_MAX (2147483647) 00039 #define INT32_MIN (-2147483647 - 1) 00040 00041 #define PRId8 "d" 00042 #define PRId16 "d" 00043 #define PRId32 "ld" 00044 #define PRId64 "lld" 00045 00046 #define PRIu8 "u" 00047 #define PRIu16 "u" 00048 #define PRIu32 "lu" 00049 #define PRIu64 "llu" 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 00055 #endif