1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Simon McVittie <smcv@debian.org>
Date: Tue, 18 Feb 2020 09:48:40 +0000
Subject: Add a version marker to each game/cgame/ui module
This ensures that they aren't identical even if built from the same
code, so that their build-IDs differ, so that their detached debug
symbols don't collide.
Forwarded: not-needed
---
code/qcommon/q_shared.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c
index 2832ea3..16a7359 100644
--- a/code/qcommon/q_shared.c
+++ b/code/qcommon/q_shared.c
@@ -23,6 +23,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// q_shared.c -- stateless support routines that are included in each code dll
#include "q_shared.h"
+static const char version_marker[] __attribute__((used)) = Q3_VERSION;
+
float Com_Clamp( float min, float max, float value ) {
if ( value < min ) {
return min;
|