diff options
author | Sven Gothel <[email protected]> | 2010-11-06 06:29:09 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-06 06:29:09 +0100 |
commit | 3e7eed35ba0e63f93fbe45d7bb14abb0c1ff956f (patch) | |
tree | 295627ff9783e9cde49a708f934f8a1fc2b17d07 /make/stub_includes/khr/KD/kdplatform.h | |
parent | d1a03d19398960d6e34232f29a30f1d569fba2a7 (diff) |
Fix khronos typedefs
- KD: use sys include
- KD: use KHR/khrplatform.h
- KHR/khrplatform.h: Use stddef.h ptrdiff_t and size_t if possible (fix)
Diffstat (limited to 'make/stub_includes/khr/KD/kdplatform.h')
-rw-r--r-- | make/stub_includes/khr/KD/kdplatform.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/make/stub_includes/khr/KD/kdplatform.h b/make/stub_includes/khr/KD/kdplatform.h index 0357b1e2e..ff932fbb5 100644 --- a/make/stub_includes/khr/KD/kdplatform.h +++ b/make/stub_includes/khr/KD/kdplatform.h @@ -2,23 +2,20 @@ #ifndef __kdplatform_h_ #define __kdplatform_h_ +#include <KHR/khrplatform.h> + #define KD_API #define KD_APIENTRY -typedef int KDint32; -typedef unsigned int KDuint32; -#if defined(_MSC_VER) -typedef signed __int64 KDint64; -typedef unsigned __int64 KDuint64; -#else -typedef long long KDint64; -typedef unsigned long long KDuint64; -#endif -typedef short KDint16; -typedef unsigned short KDuint16; -typedef unsigned long KDuintptr; -typedef unsigned long KDsize; -typedef long KDssize; +typedef khronos_int32_t KDint32; +typedef khronos_uint32_t KDuint32; +typedef khronos_int64_t KDint64; +typedef khronos_uint64_t KDuint64; +typedef khronos_int16_t KDint16; +typedef khronos_uint16_t KDuint16; +typedef khronos_uintptr_t KDuintptr; +typedef khronos_usize_t KDsize; +typedef khronos_ssize_t KDssize; #define KDINT_MIN (-0x7fffffff-1) #define KDINT_MAX 0x7fffffff #define KDUINT_MAX 0xffffffffU |