[C][Client] Add gcc predefined macros to reserved keywords (#19791)

This commit is contained in:
Hui Yu 2024-10-09 01:38:12 +08:00 committed by GitHub
parent b3b3f46ee2
commit ba169342a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -120,6 +120,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>if</li> <li>if</li>
<li>inline</li> <li>inline</li>
<li>int</li> <li>int</li>
<li>linux</li>
<li>long</li> <li>long</li>
<li>mutable</li> <li>mutable</li>
<li>namespace</li> <li>namespace</li>

View File

@ -255,7 +255,11 @@ public class CLibcurlClientCodegen extends DefaultCodegen implements CodegenConf
// VC++ reserved keywords // VC++ reserved keywords
"stdin", "stdin",
"stdout", "stdout",
"stderr") "stderr",
// gcc predefined macros
"linux"
)
); );
instantiationTypes.clear(); instantiationTypes.clear();