From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 13:29:06 +0000 (+0100) Subject: always define GMQCC, never define FTEQCC or QCC, but have __STD_FTEQCC__ and the... X-Git-Tag: 0.1.9~279 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7bf73455d4b2cc2497afb444cbae9170f67aad8;p=xonotic%2Fgmqcc.git always define GMQCC, never define FTEQCC or QCC, but have __STD_FTEQCC__ and the likes for -std=qcc/gmqcc/fteqcc --- diff --git a/ftepp.c b/ftepp.c index 7969231..1e45de9 100644 --- a/ftepp.c +++ b/ftepp.c @@ -1363,15 +1363,16 @@ bool ftepp_init() ftepp = ftepp_new(); if (!ftepp) return false; - + /* set the right macro based on the selected standard */ + ftepp_add_define(NULL, "GMQCC"); if (opts_standard == COMPILER_FTEQCC) - ftepp_add_define(NULL, "FTEQCC"); + ftepp_add_define(NULL, "__STD_FTEQCC__"); else if (opts_standard == COMPILER_GMQCC) - ftepp_add_define(NULL, "GMQCC"); + ftepp_add_define(NULL, "__STD_GMQCC__"); else if (opts_standard == COMPILER_QCC) - ftepp_add_define(NULL, "QCC"); - + ftepp_add_define(NULL, "__STD_QCC__"); + return true; }