diff --git a/code/qcommon/game_version.h b/code/qcommon/game_version.h
index e0dc7335a4..49bf3cc526 100644
--- a/code/qcommon/game_version.h
+++ b/code/qcommon/game_version.h
@@ -22,6 +22,12 @@ along with this program; if not, see .
#include "qcommon/q_version.h"
+#if !defined(STRING) && !defined(XSTRING)
+ // rather than including q_shared.h from win32 resource scripts (win32/*.rc)
+ #define STRING( a ) #a
+ #define XSTRING( a ) STRING( a )
+#endif
+
// Current version of the single player game
#define VERSION_MAJOR_RELEASE 1
#define VERSION_MINOR_RELEASE 0
diff --git a/codemp/qcommon/game_version.h b/codemp/qcommon/game_version.h
index db570e3d96..4e4cc5cce2 100644
--- a/codemp/qcommon/game_version.h
+++ b/codemp/qcommon/game_version.h
@@ -22,6 +22,12 @@ along with this program; if not, see .
#include "qcommon/q_version.h"
+#if !defined(STRING) && !defined(XSTRING)
+ // rather than including q_shared.h from win32 resource scripts (win32/*.rc)
+ #define STRING( a ) #a
+ #define XSTRING( a ) STRING( a )
+#endif
+
// Current version of the multi player game
#define VERSION_MAJOR_RELEASE 1
#define VERSION_MINOR_RELEASE 0