Skip to content

Commit

Permalink
c: fixes include header replacement
Browse files Browse the repository at this point in the history
closes: #459
  • Loading branch information
Dav1dde committed Mar 18, 2024
1 parent 463b2b2 commit 51b787e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glad/generator/c/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ def _replace_included_headers(self, feature_set, config):
for pheader in self.ADDITIONAL_HEADERS:
name = pheader.name.rsplit('/', 1)[-1]
content = re.sub(
'^(#include\\s*["<]({}|{})[>"])'.format(name, pheader.name), r'/* \1 */',
content,
'^(#include\\s*["<]({}|{})(\\.h)?[>"])'.format(name, pheader.include), r'/* \1 */',
content,
flags=re.MULTILINE
)

Expand Down

0 comments on commit 51b787e

Please sign in to comment.