mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-26 16:47:40 +01:00
20 lines
287 B
C
20 lines
287 B
C
|
|
#include "stdint.h"
|
|
|
|
// How can we prevent VC to define this ?
|
|
#ifdef _MSC_VER
|
|
|
|
// VS define size_t, but can't find a macro for SIZE_T_MAX
|
|
#define SIZE_T_MAX MAX_UINTN
|
|
|
|
#else
|
|
|
|
#define SIZE_T_MAX MAX_UINTN
|
|
typedef UINTN size_t;
|
|
|
|
#endif
|
|
|
|
typedef INTN ptrdiff_t;
|
|
typedef UINTN uintptr_t;
|
|
|