2008-04-04 03:24:57 +02:00
|
|
|
/*
|
|
|
|
* streamtypes.h - widely used type definitions
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _STREAMTYPES_H
|
|
|
|
#define _STREAMTYPES_H
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
2019-10-20 23:51:06 +02:00
|
|
|
/* Common versions:
|
|
|
|
* - 1500: VS2008
|
|
|
|
* - 1600: VS2010
|
|
|
|
* - 1700: VS2012
|
|
|
|
* - 1800: VS2013
|
|
|
|
* - 1900: VS2015
|
|
|
|
* - 1920: VS2019 */
|
2017-01-02 15:43:10 +01:00
|
|
|
|
2015-08-13 01:08:40 +02:00
|
|
|
#if (_MSC_VER >= 1600)
|
2019-10-20 23:51:06 +02:00
|
|
|
|
2015-08-13 01:08:40 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#else
|
2008-06-15 09:51:10 +02:00
|
|
|
#include <pstdint.h>
|
2019-10-20 23:51:06 +02:00
|
|
|
#endif
|
2017-01-02 15:43:10 +01:00
|
|
|
|
2018-11-03 18:09:13 +01:00
|
|
|
#ifndef inline /* (_MSC_VER < 1900)? */
|
2008-04-04 03:24:57 +02:00
|
|
|
#define inline _inline
|
2018-11-03 18:09:13 +01:00
|
|
|
#endif
|
|
|
|
|
2008-04-04 03:24:57 +02:00
|
|
|
#define strcasecmp _stricmp
|
2017-01-02 15:43:10 +01:00
|
|
|
#define strncasecmp _strnicmp
|
|
|
|
|
2015-08-30 17:10:26 +02:00
|
|
|
#if (_MSC_VER < 1900)
|
2008-04-04 03:24:57 +02:00
|
|
|
#define snprintf _snprintf
|
2019-10-20 23:51:06 +02:00
|
|
|
#endif
|
2017-01-02 15:43:10 +01:00
|
|
|
|
2008-04-04 03:24:57 +02:00
|
|
|
#else
|
|
|
|
#include <stdint.h>
|
2019-10-20 23:51:06 +02:00
|
|
|
|
2017-01-02 15:43:10 +01:00
|
|
|
#endif /* _MSC_VER */
|
2008-04-04 03:24:57 +02:00
|
|
|
|
2019-02-23 02:47:03 +01:00
|
|
|
typedef int16_t sample; //TODO: deprecated, remove
|
|
|
|
typedef int16_t sample_t;
|
2008-04-04 03:24:57 +02:00
|
|
|
|
|
|
|
#endif
|