From 09eef8a07bc5ae2b2651a6d2bf2be2dc7187fa08 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 30 Jan 2022 14:21:07 +0900 Subject: [PATCH] [qfcc] Define __RUAMOKO__ as 2 for Ruamoko ISA and __RAUMOKO__ as well. --- tools/qfcc/source/options.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/options.c b/tools/qfcc/source/options.c index 7283ba9f7..573730986 100644 --- a/tools/qfcc/source/options.c +++ b/tools/qfcc/source/options.c @@ -713,8 +713,13 @@ DecodeArgs (int argc, char **argv) options.code.progsversion = PROG_V6P_VERSION; if (!options.traditional) { options.advanced = true; - add_cpp_def ("-D__RUAMOKO__=1"); - add_cpp_def ("-D__RAUMOKO__=1"); + if (options.code.progsversion < PROG_VERSION) { + add_cpp_def ("-D__RUAMOKO__=1"); + add_cpp_def ("-D__RAUMOKO__=1"); + } else { + add_cpp_def ("-D__RUAMOKO__=2"); + add_cpp_def ("-D__RAUMOKO__=2"); + } if (options.code.ifstring == (qboolean) -1) options.code.ifstring = false; if (options.code.short_circuit == (qboolean) -1)