[DEV] Limits Int32 at Android
This commit is contained in:
parent
1c21a6f3d5
commit
c90b9d1b39
34
etk/types.h
34
etk/types.h
@ -19,22 +19,24 @@
|
|||||||
// note in android include the macro of min max are overwitten
|
// note in android include the macro of min max are overwitten
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
// in case of android error ...
|
// in case of android error ...
|
||||||
#ifndef __STDINT_LIMITS
|
#ifdef __TARGET_OS__Android
|
||||||
#define INT8_MIN (-128)
|
#ifndef __STDINT_LIMITS
|
||||||
#define INT8_MAX (127)
|
#define INT8_MIN (-128)
|
||||||
#define UINT8_MAX (255U)
|
#define INT8_MAX (127)
|
||||||
|
#define UINT8_MAX (255U)
|
||||||
#define INT16_MIN (-32768)
|
|
||||||
#define INT16_MAX (32767)
|
#define INT16_MIN (-32768)
|
||||||
#define UINT16_MAX (65535U)
|
#define INT16_MAX (32767)
|
||||||
|
#define UINT16_MAX (65535U)
|
||||||
#define INT32_MIN (-2147483647-1)
|
|
||||||
#define INT32_MAX (2147483647)
|
#define INT32_MIN (-2147483647-1)
|
||||||
#define UINT32_MAX (4294967295U)
|
#define INT32_MAX (2147483647)
|
||||||
|
#define UINT32_MAX (4294967295U)
|
||||||
#define INT64_MIN (__INT64_C(-9223372036854775807)-1)
|
|
||||||
#define INT64_MAX (__INT64_C(9223372036854775807))
|
#define INT64_MIN (__INT64_C(-9223372036854775807)-1)
|
||||||
#define UINT64_MAX (__UINT64_C(18446744073709551615))
|
#define INT64_MAX (__INT64_C(9223372036854775807))
|
||||||
|
#define UINT64_MAX (__UINT64_C(18446744073709551615))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user