summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Ravier <gabravier@gmail.com>2025-11-09 15:12:50 +0100
committerGitHub <noreply@github.com>2025-11-09 11:12:50 -0300
commit7e800791a194f3f46c0e6c456bd42a972120beb4 (patch)
tree940058d351a99223e618727cc6663df699764235
parent7af068b2a2fb21768f33a91ecc644e29cf0caf17 (diff)
Correctly type the global char arrays in build.h as const (#1827)
Given that these arrays are typed as const in in build.c (and in OOT's include/build.h), it seems logical to also type them as const here.
-rw-r--r--include/build.h6
-rw-r--r--src/boot/build.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/include/build.h b/include/build.h
index fa86f5cee..25afaaa81 100644
--- a/include/build.h
+++ b/include/build.h
@@ -1,8 +1,8 @@
#ifndef BUILD_H
#define BUILD_H
-extern char gBuildCreator[];
-extern char gBuildDate[];
-extern char gBuildMakeOption[];
+extern const char gBuildCreator[];
+extern const char gBuildDate[];
+extern const char gBuildMakeOption[];
#endif
diff --git a/src/boot/build.c b/src/boot/build.c
index 31bb34016..87bd5df8d 100644
--- a/src/boot/build.c
+++ b/src/boot/build.c
@@ -1,3 +1,5 @@
+#include "build.h"
+
const char gBuildCreator[] = "zelda@srd44";
const char gBuildDate[] = "00-07-31 17:04:16";
const char gBuildMakeOption[] = "";