mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
Set correct macro for PP based on the selected standard
This commit is contained in:
parent
3dbe54f0cd
commit
8bce855f0b
1 changed files with 9 additions and 1 deletions
10
ftepp.c
10
ftepp.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue