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

View file

@ -1365,12 +1365,13 @@ bool ftepp_init()
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;
}