From a46de2f6d447409878f6cb560e28cf6cec6e33df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20M=C3=BChlstrasser?= Date: Sun, 20 Nov 2022 15:22:37 +0100 Subject: [PATCH] Fix macro order --- include/osic1p.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/osic1p.h b/include/osic1p.h index 3a5b4723e..479d9fd52 100644 --- a/include/osic1p.h +++ b/include/osic1p.h @@ -36,14 +36,6 @@ # error "This module may only be used when compiling for the Challenger 1P!" #endif -/* The following #defines will cause the matching functions calls in conio.h -** to be overlaid by macros with the same names, saving the function call -** overhead. -*/ -#define _textcolor(color) COLOR_WHITE -#define _bgcolor(color) COLOR_BLACK -#define _bordercolor(color) COLOR_BLACK - /* Colors are not functional, display is black and white only. */ #define COLOR_BLACK 0x00 #define COLOR_WHITE 0x01 @@ -62,4 +54,13 @@ #define CH_ENTER 0x0D +/* The following #defines will cause the matching functions calls in conio.h +** to be overlaid by macros with the same names, saving the function call +** overhead. +*/ +#define _textcolor(color) COLOR_WHITE +#define _bgcolor(color) COLOR_BLACK +#define _bordercolor(color) COLOR_BLACK +#define _cpeekcolor(color) COLOR_WHITE + #endif