inttypes.h

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 #ifdef _MSC_VER
00023 #if (_MSC_VER >= 1400) // VC8+
00024 #ifndef _CRT_SECURE_NO_DEPRECATE
00025 #define _CRT_SECURE_NO_DEPRECATE
00026 #endif
00027 #ifndef _CRT_NONSTDC_NO_DEPRECATE
00028 #define _CRT_NONSTDC_NO_DEPRECATE
00029 #endif
00030 #endif // VC8+
00031 #include <windows.h>
00032 typedef unsigned __int8         uint8_t;
00033 typedef unsigned __int16        uint16_t;
00034 typedef unsigned __int32        uint32_t;
00035 typedef unsigned __int64    uint64_t;
00036 typedef __int8          int8_t;
00037 typedef __int16         int16_t;
00038 typedef __int32         int32_t;
00039 typedef __int64         int64_t;
00040 #define inline __inline
00041 #define __inline__ __inline
00042 #define  INT16_MAX   0x7fff 
00043 #define  INT16_MIN   (-INT16_MAX - 1) 
00044 #define _MMX_H_
00045 
00046 /* disable the following warnings 
00047  * C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored. 
00048  * C4200: Non standard extension C zero sized array
00049  * C4706: assignment within conditional expression
00050  * C4244: conversion from 'type1' to 'type2', possible loss of data
00051  * C4295: array is too small to include a terminating null character
00052  * C4125: decimal digit terminates octal escape sequence
00053  */
00054 #pragma warning(disable:4100 4200 4706 4295 4125)
00055 
00056 #pragma comment(lib, "ws2_32.lib")
00057 
00058 #define strncasecmp _strnicmp
00059 #define strcasecmp _stricmp
00060 #define snprintf _snprintf
00061 
00062 #if !defined(INFINITY)
00063 #define INFINITY 0x7fffffff
00064 #endif
00065 #endif
00066 
00067 #define PACKAGE "spandsp"
00068 #define VERSION "0.0.3andabit"
00069 
00070 #define INT32_MAX       (2147483647)
00071 #define INT32_MIN       (-2147483647 - 1)
00072 
00073 #define PRId8 "d"
00074 #define PRId16 "d"
00075 #define PRId32 "ld"
00076 #define PRId64 "lld"
00077 
00078 #define PRIu8 "u"
00079 #define PRIu16 "u"
00080 #define PRIu32 "lu"
00081 #define PRIu64 "llu"
00082 
00083 #ifdef __cplusplus
00084 }
00085 #endif
00086 
00087 #endif

Generated on Tue Oct 7 20:25:46 2008 for spandsp by  doxygen 1.5.6