From 1b1044437716dd0f4dc1e591ba8f442fd85911e1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 11 Aug 2010 12:50:18 +0000 Subject: 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 --- base/version.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'base/version.cpp') 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). -- cgit v1.2.3