aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/internal_version.h4
-rw-r--r--base/internal_version.h.in4
-rw-r--r--base/version.cpp4
3 files changed, 11 insertions, 1 deletions
diff --git a/base/internal_version.h b/base/internal_version.h
index 2e6b7a24ad..5fd0535142 100644
--- a/base/internal_version.h
+++ b/base/internal_version.h
@@ -1,3 +1,7 @@
+#ifndef INCLUDED_FROM_BASE_VERSION_CPP
+#error This file may only be included by base/version.cpp
+#endif
+
#ifndef SCUMMVM_SVN_REVISION
#define SCUMMVM_SVN_REVISION
#endif
diff --git a/base/internal_version.h.in b/base/internal_version.h.in
index 4eecf90d87..adf5f94d21 100644
--- a/base/internal_version.h.in
+++ b/base/internal_version.h.in
@@ -1,3 +1,7 @@
+#ifndef INCLUDED_FROM_BASE_VERSION_CPP
+#error This file may only be included by base/version.cpp
+#endif
+
#ifndef SCUMMVM_SVN_REVISION
#define SCUMMVM_SVN_REVISION
#endif
diff --git a/base/version.cpp b/base/version.cpp
index 17058d4a03..055067a656 100644
--- a/base/version.cpp
+++ b/base/version.cpp
@@ -24,9 +24,11 @@
*/
#include "common/scummsys.h"
-#include "base/internal_version.h"
#include "base/version.h"
+#define INCLUDED_FROM_BASE_VERSION_CPP
+#include "base/internal_version.h"
+
/*
* Version string and build date string. These can be used by anything that
* wants to display this information to the user (e.g. about dialog).