From 511c4d3abd072fd71b21f558aaa1c6ec68ca3a46 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 4 Jun 2020 13:16:27 +0200 Subject: Fixed linker error with GCC set public constants to extern --- src/character.h | 2 +- src/color.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/character.h b/src/character.h index be6af41..b5ea368 100644 --- a/src/character.h +++ b/src/character.h @@ -5,7 +5,7 @@ #include //Both maps produce very different results -const char *default_character_map; +extern const char *default_character_map; //Select Char based on 1B brightness Value. //if _custom_map == NULL default map is used diff --git a/src/color.h b/src/color.h index 83d10f7..b832575 100644 --- a/src/color.h +++ b/src/color.h @@ -19,7 +19,7 @@ struct console_color char *no; }; -struct console_color colors[ _COLORS_SIZE ]; +extern struct console_color colors[ _COLORS_SIZE ]; //Calculate luminance //Order LSB first: BGR -- cgit v1.2.3