always define GMQCC, never define FTEQCC or QCC, but have __STD_FTEQCC__ and the likes for -std=qcc/gmqcc/fteqcc

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-25 14:29:06 +01:00
parent 7b56ad9405
commit e7bf73455d

11
ftepp.c
View file

@ -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;
}