Skip to content

Commit

Permalink
[C][Client] Add gcc predefined macros to reserved keywords (#19791)
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuhui authored Oct 8, 2024
1 parent b3b3f46 commit ba16934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/generators/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>if</li>
<li>inline</li>
<li>int</li>
<li>linux</li>
<li>long</li>
<li>mutable</li>
<li>namespace</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ public CLibcurlClientCodegen() {
// VC++ reserved keywords
"stdin",
"stdout",
"stderr")
"stderr",

// gcc predefined macros
"linux"
)
);

instantiationTypes.clear();
Expand Down

0 comments on commit ba16934

Please sign in to comment.