From cbb6b1896673fc3139e2939aa0999003d89c71fc Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Fri, 17 Dec 2021 16:47:58 +0100 Subject: [PATCH] allow "byte" and "word" to be recognized in common C editors --- lib/utils.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/utils.h b/lib/utils.h index 7fc7ff0..3d25a54 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -5,3 +5,10 @@ #define LOBYTE(c) (<(c)) #define NOP asm { nop } + +#ifndef __KICKC__ +// KickC defaults these, while other C compilers do not +// this makes syntax highlight work in common C editors +typedef unsigned char byte; +typedef unsigned int word; +#endif