2020-03-21 14:12:26 +01:00
|
|
|
#ifndef __CLOVER_STDDEF_H__
|
|
|
|
#define __CLOVER_STDDEF_H__
|
2020-03-13 14:11:58 +01:00
|
|
|
|
2020-04-08 12:49:00 +02:00
|
|
|
//#include "stdint.h" // DO NOT include stdint.h from stddef.h
|
2020-03-13 14:11:58 +01:00
|
|
|
|
2020-03-13 15:37:37 +01:00
|
|
|
// How can we prevent VC to define this ?
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
2020-03-21 14:12:26 +01:00
|
|
|
// VS define size_t
|
2020-03-13 15:37:37 +01:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2020-03-21 14:12:26 +01:00
|
|
|
// 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;
|
|
|
|
|
2020-03-21 14:12:26 +01:00
|
|
|
#endif
|