Mercurial > hg > audiostuff
comparison spandsp-0.0.3/spandsp-0.0.3/src/msvc/inttypes.h @ 5:f762bf195c4b
import spandsp-0.0.3
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 16:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:26cd8f1ef0b1 | 5:f762bf195c4b |
---|---|
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 #ifdef _MSC_VER | |
23 #if (_MSC_VER >= 1400) // VC8+ | |
24 #ifndef _CRT_SECURE_NO_DEPRECATE | |
25 #define _CRT_SECURE_NO_DEPRECATE | |
26 #endif | |
27 #ifndef _CRT_NONSTDC_NO_DEPRECATE | |
28 #define _CRT_NONSTDC_NO_DEPRECATE | |
29 #endif | |
30 #endif // VC8+ | |
31 #include "windows.h" | |
32 typedef unsigned __int8 uint8_t; | |
33 typedef unsigned __int16 uint16_t; | |
34 typedef unsigned __int32 uint32_t; | |
35 typedef unsigned __int64 uint64_t; | |
36 typedef __int8 int8_t; | |
37 typedef __int16 int16_t; | |
38 typedef __int32 int32_t; | |
39 typedef __int64 int64_t; | |
40 #define inline __inline | |
41 #define __inline__ __inline | |
42 #define INT16_MAX 0x7fff | |
43 #define INT16_MIN (-INT16_MAX - 1) | |
44 #define _MMX_H_ | |
45 | |
46 /* disable the following warnings | |
47 * C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored. | |
48 * C4200: Non standard extension C zero sized array | |
49 * C4706: assignment within conditional expression | |
50 * C4244: conversion from 'type1' to 'type2', possible loss of data | |
51 * C4295: array is too small to include a terminating null character | |
52 * C4125: decimal digit terminates octal escape sequence | |
53 */ | |
54 #pragma warning(disable:4100 4200 4706 4295 4125) | |
55 | |
56 #pragma comment(lib, "ws2_32.lib") | |
57 | |
58 #define strncasecmp _strnicmp | |
59 #define strcasecmp _stricmp | |
60 #define snprintf _snprintf | |
61 | |
62 #if !defined(INFINITY) | |
63 #define INFINITY 0x7fffffff | |
64 #endif | |
65 #endif | |
66 | |
67 #ifdef __cplusplus | |
68 } | |
69 #endif | |
70 | |
71 #endif |