libg722_1 0.1.0
inttypes.h
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
19extern "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>
32typedef unsigned __int8 uint8_t;
33typedef unsigned __int16 uint16_t;
34typedef unsigned __int32 uint32_t;
35typedef unsigned __int64 uint64_t;
36typedef __int8 int8_t;
37typedef __int16 int16_t;
38typedef __int32 int32_t;
39typedef __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#define PACKAGE "ilbc"
68#define VERSION "0.1.0andabit"
69
70#define INT32_MAX (2147483647)
71#define INT32_MIN (-2147483647 - 1)
72
73#define PRId8 "d"
74#define PRId16 "d"
75#define PRId32 "ld"
76#define PRId64 "lld"
77
78#define PRIu8 "u"
79#define PRIu16 "u"
80#define PRIu32 "lu"
81#define PRIu64 "llu"
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif