Fix GNU C build
This commit is contained in:
parent
d5eab1626b
commit
7d4f2d56fa
@ -29,8 +29,9 @@
|
|||||||
#define __goldall_h
|
#define __goldall_h
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
#ifdef __cplusplus
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#endif
|
||||||
#include <gcmpall.h>
|
#include <gcmpall.h>
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -109,25 +110,25 @@
|
|||||||
typedef signed char int8_t;
|
typedef signed char int8_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned char uint8_t;
|
||||||
#else
|
#else
|
||||||
#error Don't know how to define 8 bit integers
|
#error Dont know how to define 8 bit integers
|
||||||
#endif
|
#endif
|
||||||
#if (USHRT_MAX == 0xFFFF)
|
#if (USHRT_MAX == 0xFFFF)
|
||||||
typedef signed short int16_t;
|
typedef signed short int16_t;
|
||||||
typedef unsigned short uint16_t;
|
typedef unsigned short uint16_t;
|
||||||
#else
|
#else
|
||||||
#error Don't know how to define 16 bit integers
|
#error Dont know how to define 16 bit integers
|
||||||
#endif
|
#endif
|
||||||
#if (UINT_MAX == 0xFFFFFFFF)
|
#if (UINT_MAX == 0xFFFFFFFF)
|
||||||
typedef signed int int32_t;
|
typedef signed int int32_t;
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
#else
|
#else
|
||||||
#error Don't know how to define 32 bit integers
|
#error Dont know how to define 32 bit integers
|
||||||
#endif
|
#endif
|
||||||
|
#endif //#ifdef _MSC_VER
|
||||||
|
|
||||||
typedef uint8_t byte;
|
typedef uint8_t byte;
|
||||||
typedef uint16_t word;
|
typedef uint16_t word;
|
||||||
typedef uint32_t dword;
|
typedef uint32_t dword;
|
||||||
#endif //#ifdef _MSC_VER
|
|
||||||
|
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user