aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-08-05 13:44:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-08-05 13:44:12 -0400
commit8cdf0c5ab96282d821a024a8a382cb93432219fe (patch)
tree3e54558e5a8c0d2aa5af225cec156020d4d702e3
parent65bc0a7bc9996b3ca7a65c8e5f1a45abdd4823a4 (diff)
downloadseabios-8cdf0c5ab96282d821a024a8a382cb93432219fe.tar.gz
seabios-8cdf0c5ab96282d821a024a8a382cb93432219fe.tar.xz
seabios-8cdf0c5ab96282d821a024a8a382cb93432219fe.zip
version: Update header files now that version.c is not auto generated
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/util.h7
-rw-r--r--vgasrc/vgainit.c1
-rw-r--r--vgasrc/vgautil.h3
3 files changed, 6 insertions, 5 deletions
diff --git a/src/util.h b/src/util.h
index 7bfd2b8..557eb8b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -232,13 +232,12 @@ void code_mutable_preinit(void);
void serial_setup(void);
void lpt_setup(void);
+// version.c
+extern const char VERSION[], BUILDINFO[];
+
// vgahooks.c
void handle_155f(struct bregs *regs);
void handle_157f(struct bregs *regs);
void vgahook_setup(struct pci_device *pci);
-
-// version (auto generated file out/version.c)
-extern const char VERSION[], BUILDINFO[];
-
#endif // util.h
diff --git a/vgasrc/vgainit.c b/vgasrc/vgainit.c
index 4050c96..c6c8149 100644
--- a/vgasrc/vgainit.c
+++ b/vgasrc/vgainit.c
@@ -14,7 +14,6 @@
#include "std/optionrom.h" // struct pci_data
#include "std/pmm.h" // struct pmmheader
#include "string.h" // checksum_far
-#include "util.h" // VERSION
#include "vgabios.h" // SET_VGA
#include "vgahw.h" // vgahw_setup
#include "vgautil.h" // swcursor_check_event
diff --git a/vgasrc/vgautil.h b/vgasrc/vgautil.h
index 79c16be..08c4e8d 100644
--- a/vgasrc/vgautil.h
+++ b/vgasrc/vgautil.h
@@ -87,4 +87,7 @@ extern u8 vgafont16alt[];
extern int VgaBDF;
extern int HaveRunInit;
+// vgaversion.c
+extern const char VERSION[], BUILDINFO[];
+
#endif // vgautil.h