include/FLAC/ordinals.h : Remove CPP hackery.
This change assumes that a C99 <stdint.h> header is available. For compilers where that is not the case, the user should provide a minimal replacement header.
This commit is contained in:
parent
dac99fa20b
commit
c506b2f43e
@ -32,35 +32,21 @@
|
|||||||
#ifndef FLAC__ORDINALS_H
|
#ifndef FLAC__ORDINALS_H
|
||||||
#define FLAC__ORDINALS_H
|
#define FLAC__ORDINALS_H
|
||||||
|
|
||||||
#if !(defined(_MSC_VER) || defined(__BORLANDC__) || defined(__EMX__))
|
/* If your compiler does not provide <stdint.h> you should provide a replacement
|
||||||
#include <inttypes.h>
|
* which hss suitable replacements for the following intX_T and uintX_t types.
|
||||||
#endif
|
*/
|
||||||
|
|
||||||
typedef signed char FLAC__int8;
|
#include <stdint.h>
|
||||||
typedef unsigned char FLAC__uint8;
|
|
||||||
|
typedef int8_t FLAC__int8;
|
||||||
|
typedef uint8_t FLAC__uint8;
|
||||||
|
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
|
||||||
typedef __int16 FLAC__int16;
|
|
||||||
typedef __int32 FLAC__int32;
|
|
||||||
typedef __int64 FLAC__int64;
|
|
||||||
typedef unsigned __int16 FLAC__uint16;
|
|
||||||
typedef unsigned __int32 FLAC__uint32;
|
|
||||||
typedef unsigned __int64 FLAC__uint64;
|
|
||||||
#elif defined(__EMX__)
|
|
||||||
typedef short FLAC__int16;
|
|
||||||
typedef long FLAC__int32;
|
|
||||||
typedef long long FLAC__int64;
|
|
||||||
typedef unsigned short FLAC__uint16;
|
|
||||||
typedef unsigned long FLAC__uint32;
|
|
||||||
typedef unsigned long long FLAC__uint64;
|
|
||||||
#else
|
|
||||||
typedef int16_t FLAC__int16;
|
typedef int16_t FLAC__int16;
|
||||||
typedef int32_t FLAC__int32;
|
typedef int32_t FLAC__int32;
|
||||||
typedef int64_t FLAC__int64;
|
typedef int64_t FLAC__int64;
|
||||||
typedef uint16_t FLAC__uint16;
|
typedef uint16_t FLAC__uint16;
|
||||||
typedef uint32_t FLAC__uint32;
|
typedef uint32_t FLAC__uint32;
|
||||||
typedef uint64_t FLAC__uint64;
|
typedef uint64_t FLAC__uint64;
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef int FLAC__bool;
|
typedef int FLAC__bool;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user