aboutsummaryrefslogtreecommitdiff
path: root/base/internal_version.h.in
diff options
context:
space:
mode:
authorMax Horn2010-08-11 12:50:18 +0000
committerMax Horn2010-08-11 12:50:18 +0000
commit1b1044437716dd0f4dc1e591ba8f442fd85911e1 (patch)
tree1ce0116bcfc86b9b97a3a6a4cd959dcf52fc9f78 /base/internal_version.h.in
parent01c8e02e60530b70dba26cdaf707710aa41f94c7 (diff)
downloadscummvm-rg350-1b1044437716dd0f4dc1e591ba8f442fd85911e1.tar.gz
scummvm-rg350-1b1044437716dd0f4dc1e591ba8f442fd85911e1.tar.bz2
scummvm-rg350-1b1044437716dd0f4dc1e591ba8f442fd85911e1.zip
BUILD: Limit scope of SCUMMVM_SVN_REVISION and SCUMMVM_VERSION macros
Only #define SCUMMVM_SVN_REVISION for base/version.cpp (at most), to avoid having all source files implicitly depend on the SVN revision. Also add a safeguard to prevent code from accidentally using the internal header file base/internal_version.h. svn-id: r51978
Diffstat (limited to 'base/internal_version.h.in')
-rw-r--r--base/internal_version.h.in4
1 files changed, 4 insertions, 0 deletions
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