forked from Mirrors/openclonk
win32: Use stdint.h instead of windows-only compiler extensions
parent
082a85228c
commit
8b927d142c
|
@ -80,31 +80,7 @@
|
|||
|
||||
|
||||
// Integer dataypes
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#elif defined(_MSC_VER)
|
||||
#include <cstddef>
|
||||
typedef signed __int8 int8_t;
|
||||
typedef signed __int16 int16_t;
|
||||
typedef signed __int32 int32_t;
|
||||
typedef signed __int64 int64_t;
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
// Copied from newer stddef.h
|
||||
#ifndef _INTPTR_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
typedef __int64 intptr_t;
|
||||
#else
|
||||
typedef __int32 intptr_t;
|
||||
#endif
|
||||
#define _INTPTR_T_DEFINED
|
||||
#endif
|
||||
#else
|
||||
#error Could not find integer datatypes!
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
|
|
Loading…
Reference in New Issue