mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
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:
parent
7b56ad9405
commit
e7bf73455d
1 changed files with 6 additions and 5 deletions
11
ftepp.c
11
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue