Skip to content

Commit 2771429

Browse files
committed
Treat .c files as C headers
1 parent 739d665 commit 2771429

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/dpp/expansion/package.d

+3-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ from!"clang".Cursor mergeLeaves(from!"clang".Cursor lhs, from!"clang".Cursor rhs
295295
bool isCppHeader(in from!"dpp.runtime.options".Options options, in string headerFileName) @safe pure {
296296
import std.path: extension;
297297
if(options.parseAsCpp) return true;
298-
return headerFileName.extension != ".h";
298+
return
299+
headerFileName.extension != ".h" &&
300+
headerFileName.extension != ".c";
299301
}
300302

301303

0 commit comments

Comments
 (0)