diff options
| author | Chia-I Wu <olv@lunarg.com> | 2014-12-27 14:14:50 +0800 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-04 17:58:02 -0700 |
| commit | 6fb3caecc605008d2dbd3eb729ef34dedfeb094f (patch) | |
| tree | 7062e19b4621ca81ab7a612cec987f60566c489b /include | |
| parent | 9be0fb9abe725774aa0c25d5b0289e0834f7f943 (diff) | |
| download | usermoji-6fb3caecc605008d2dbd3eb729ef34dedfeb094f.tar.xz | |
include: fix typedefs
Use what was in the upstream header. The switch of XGL_SIZE to size_t
generates quite some warnings and is fixed.
Diffstat (limited to 'include')
| -rw-r--r-- | include/xgl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/xgl.h b/include/xgl.h index f28aa22c..5ccafd04 100644 --- a/include/xgl.h +++ b/include/xgl.h @@ -48,6 +48,7 @@ #ifndef __XGL_H__ #define __XGL_H__ +#include <stddef.h> #include <stdint.h> #define XGL_MAKE_VERSION(major, minor, patch) \ @@ -68,16 +69,16 @@ extern "C" /* * Datatypes */ -typedef unsigned char XGL_BOOL; +typedef uint32_t XGL_BOOL; typedef void XGL_VOID; -typedef signed char XGL_CHAR; /* 1-byte signed */ +typedef char XGL_CHAR; /* 1-byte signed */ typedef int32_t XGL_INT; /* 4-byte signed */ typedef int32_t XGL_INT32; /* 4-byte signed */ typedef uint32_t XGL_UINT; /* 4-byte unsigned */ typedef uint32_t XGL_UINT32; /* 4-byte unsigned */ typedef uint64_t XGL_UINT64; /* 8-byte unsigned */ -typedef uint32_t XGL_SIZE; /* 4-byte unsigned */ -typedef uint32_t XGL_GPU_SIZE; /* 4-byte unsigned */ +typedef size_t XGL_SIZE; /* 4-byte unsigned */ +typedef uint64_t XGL_GPU_SIZE; /* 4-byte unsigned */ typedef uint32_t XGL_FLAGS; /* 4-byte unsigned */ typedef uint32_t XGL_SAMPLE_MASK; /* 4-byte unsigned */ typedef uint8_t XGL_UINT8; /* 1-byte unsigned */ |
