summaryrefslogtreecommitdiff
path: root/include/glamacdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/glamacdef.h')
-rw-r--r--include/glamacdef.h5
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 */
Back to https://optics-design.com