CloverBootloader/rEFIt_UEFI/Platform/Posix/stddef.h

23 lines
487 B
C
Raw Normal View History

#ifndef __CLOVER_STDDEF_H__
#define __CLOVER_STDDEF_H__
#include "stdint.h"
2020-03-13 15:37:37 +01:00
// How can we prevent VC to define this ?
#ifdef _MSC_VER
// VS define size_t
2020-03-13 15:37:37 +01:00
#else
// 2020-03 : On Gcc 9.2 and Clang (Apple LLVM version 10.0.0), size_t is not builtin, but __SIZE_TYPE__ is
typedef __SIZE_TYPE__ size_t;
//typedef long int ssize_t; // no __SSIZE_TYPE__. We don't use ssize_t in CLover. Let's try to keep it that way.
2020-03-13 15:37:37 +01:00
#endif
typedef INTN ptrdiff_t;
typedef UINTN uintptr_t;
#endif