From 518b42b04a9fd32f9822967291a5eb5bfe7f804b Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 8 Sep 2023 21:42:06 +0200 Subject: kit_test: fix cpp compat --- source/kit/kit_test.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/kit/kit_test.h b/source/kit/kit_test.h index f935cf9..70b08b3 100644 --- a/source/kit/kit_test.h +++ b/source/kit/kit_test.h @@ -330,11 +330,9 @@ enum { kit_green_ }; -static char const *kit_color_codes_[] = { - [kit_white_] = "\x1b[38m", [kit_blue_] = "\x1b[34m", - [kit_light_] = "\x1b[37m", [kit_yellow_] = "\x1b[33m", - [kit_red_] = "\x1b[31m", [kit_green_] = "\x1b[32m" -}; +static char const *kit_color_codes_[] = { "\x1b[38m", "\x1b[34m", + "\x1b[37m", "\x1b[33m", + "\x1b[31m", "\x1b[32m" }; static int kit_print_color_(int c) { return printf("%s", kit_color_codes_[c]); -- cgit v1.2.3