Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/msvc/inttypes.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
---|---|
1 /* | |
2 * SpanDSP - a series of DSP components for telephony | |
3 * | |
4 * inttypes.h - a fudge for MSVC, which lacks this header | |
5 * | |
6 * Written by Steve Underwood <steveu@coppice.org> | |
7 * | |
8 * Copyright (C) 2006 Michael Jerris | |
9 * | |
10 * | |
11 * This file is released in the public domain. | |
12 * | |
13 */ | |
14 | |
15 #if !defined(_INTTYPES_H_) | |
16 #define _INTTYPES_H_ | |
17 | |
18 #ifdef __cplusplus | |
19 extern "C" { | |
20 #endif | |
21 | |
22 typedef __int8 __int8_t; | |
23 typedef __int16 __int16_t; | |
24 typedef __int32 __int32_t; | |
25 typedef __int64 __int64_t; | |
26 | |
27 typedef unsigned __int8 uint8_t; | |
28 typedef unsigned __int16 uint16_t; | |
29 typedef unsigned __int32 uint32_t; | |
30 typedef unsigned __int64 uint64_t; | |
31 typedef __int8 int8_t; | |
32 typedef __int16 int16_t; | |
33 typedef __int32 int32_t; | |
34 typedef __int64 int64_t; | |
35 | |
36 #define INT16_MAX 0x7FFF | |
37 #define INT16_MIN (-INT16_MAX - 1) | |
38 | |
39 #if !defined(INFINITY) | |
40 #define INFINITY 0x7FFFFFFF | |
41 #endif | |
42 | |
43 #define INT32_MAX (2147483647) | |
44 #define INT32_MIN (-2147483647 - 1) | |
45 | |
46 #define PRId8 "d" | |
47 #define PRId16 "d" | |
48 #define PRId32 "ld" | |
49 #define PRId64 "lld" | |
50 | |
51 #define PRIu8 "u" | |
52 #define PRIu16 "u" | |
53 #define PRIu32 "lu" | |
54 #define PRIu64 "llu" | |
55 | |
56 #ifdef __cplusplus | |
57 } | |
58 #endif | |
59 | |
60 #endif |