Set correct macro for PP based on the selected standard

This commit is contained in:
Dale Weiler 2012-11-24 00:37:36 +00:00
parent 3dbe54f0cd
commit 8bce855f0b

10
ftepp.c
View file

@ -1363,7 +1363,15 @@ bool ftepp_init()
ftepp = ftepp_new();
if (!ftepp)
return false;
ftepp_add_define(NULL, "GMQCC");
/* set the right macro based on the selected standard */
if (opts_standard == COMPILER_FTEQCC)
ftepp_add_define(NULL, "FTEQCC");
else if (opts_standard == COMPILER_GMQCC)
ftepp_add_define(NULL, "GMQCC");
else if (opts_standard == COMPILER_QCC)
ftepp_add_define(NULL, "QCC");
return true;
}