summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-01-22 20:56:04 -0500
committerAndrew Opalach <andrew@akon.city> 2025-01-23 10:29:46 -0500
commit2daa31c0629f2eb4af84d6f4fed8ac89813de056 (patch)
treee90fdfa620a6a34361087edfe197a016e4828737 /src/util
parent5073f74aefb91616fb8e1df087747105e46e265d (diff)
downloadcamu-2daa31c0629f2eb4af84d6f4fed8ac89813de056.tar.gz
camu-2daa31c0629f2eb4af84d6f4fed8ac89813de056.tar.bz2
camu-2daa31c0629f2eb4af84d6f4fed8ac89813de056.zip
Big build update
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/color_palette.c6
-rw-r--r--src/util/color_palette.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/util/color_palette.c b/src/util/color_palette.c
index 02af36f..73dfc83 100644
--- a/src/util/color_palette.c
+++ b/src/util/color_palette.c
@@ -31,9 +31,11 @@ static char *normal_colors[16] = {
"color14",
"color15"
};
+#endif
bool camu_color_palette_init(str *path)
{
+#ifdef NAUNET_HAS_JSON
struct nn_file file;
if (!nn_file_open(&file, path, NNWT_FILE_READONLY)) {
return false;
@@ -93,6 +95,8 @@ bool camu_color_palette_init(str *path)
al_log_warn("color_palette", "%s is not a valid hex color.", normal_colors[i]);
}
}
+#else
+ (void)path;
+#endif
return true;
}
-#endif
diff --git a/src/util/color_palette.h b/src/util/color_palette.h
index e3e4ed5..a71360c 100644
--- a/src/util/color_palette.h
+++ b/src/util/color_palette.h
@@ -32,6 +32,4 @@ struct camu_color_palette {
extern struct camu_color_palette global_color_palette;
-#ifdef NAUNET_HAS_JSON
bool camu_color_palette_init(str *path);
-#endif