mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-16 10:52:32 +01:00
cleanup: tweaks
This commit is contained in:
parent
44925f38f5
commit
a211dcf9b0
@ -1,11 +1,12 @@
|
||||
/*
|
||||
* streamtypes.h - widely used type definitions
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _STREAMTYPES_H
|
||||
#define _STREAMTYPES_H
|
||||
|
||||
#include <stddef.h> //size_t
|
||||
#include <stdbool.h> //bool
|
||||
|
||||
#ifdef _MSC_VER
|
||||
/* Common versions:
|
||||
* - 1500: VS2008
|
||||
@ -15,25 +16,24 @@
|
||||
* - 1900: VS2015
|
||||
* - 1920: VS2019 */
|
||||
|
||||
#if (_MSC_VER >= 1600)
|
||||
#if (_MSC_VER >= 1600)
|
||||
#include <stdint.h>
|
||||
#else
|
||||
#include <pstdint.h>
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#if (_MSC_VER < 1800) && !defined(__cplusplus)
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
#define strcasecmp _stricmp
|
||||
#define strncasecmp _strnicmp
|
||||
|
||||
#if (_MSC_VER < 1900)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
#else
|
||||
#include <pstdint.h>
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER < 1800) && !defined(__cplusplus)
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
#define strcasecmp _stricmp
|
||||
#define strncasecmp _strnicmp
|
||||
|
||||
#if (_MSC_VER < 1900)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include <stdint.h>
|
||||
|
||||
#endif /* _MSC_VER */
|
||||
|
Loading…
x
Reference in New Issue
Block a user