]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
always define GMQCC, never define FTEQCC or QCC, but have __STD_FTEQCC__ and the...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 13:29:06 +0000 (14:29 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 13:29:06 +0000 (14:29 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index 7969231299a00b2dd8f06bafa0d33e2c8f838bde..1e45de9c6c3a0169deb92b52af0f9c7cd9739f4b 100644 (file)
--- 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;
 }