diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-06-04 13:16:27 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-06-04 13:16:27 +0200 |
commit | 511c4d3abd072fd71b21f558aaa1c6ec68ca3a46 (patch) | |
tree | 512197b395fdb682ddee7f6bf4625e18722490c2 | |
parent | 5272a688ef7e6923ae5ee62ca150f75e47d16e57 (diff) | |
download | AsciiMap-511c4d3abd072fd71b21f558aaa1c6ec68ca3a46.tar.gz |
Fixed linker error with GCC
set public constants to extern
-rw-r--r-- | src/character.h | 2 | ||||
-rw-r--r-- | src/color.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 <string.h> //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 |