diff options
Diffstat (limited to 'include/glamacdef.h')
-rw-r--r-- | include/glamacdef.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/glamacdef.h b/include/glamacdef.h index 563df70..aeba926 100644 --- a/include/glamacdef.h +++ b/include/glamacdef.h @@ -26,7 +26,12 @@ typedef uint64_t u64; typedef float f32;
typedef double f64;
typedef uintptr_t uptr;
+#ifndef _WIN32
typedef char byte;
+#else
+// On Windows, use unsigned char to match Windows headers
+typedef unsigned char byte;
+#endif
typedef ptrdiff_t size;
typedef size_t usize;
/* Utility macros */
|