Skip to content

Commit ba16934

Browse files
authored
[C][Client] Add gcc predefined macros to reserved keywords (#19791)
1 parent b3b3f46 commit ba16934

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

docs/generators/c.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
120120
<li>if</li>
121121
<li>inline</li>
122122
<li>int</li>
123+
<li>linux</li>
123124
<li>long</li>
124125
<li>mutable</li>
125126
<li>namespace</li>

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ public CLibcurlClientCodegen() {
255255
// VC++ reserved keywords
256256
"stdin",
257257
"stdout",
258-
"stderr")
258+
"stderr",
259+
260+
// gcc predefined macros
261+
"linux"
262+
)
259263
);
260264

261265
instantiationTypes.clear();

0 commit comments

Comments
 (0)