Skip to content

Commit

Permalink
Fix little upstream C++ header regression
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Mar 3, 2024
1 parent e122f7d commit 5b2dcf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dmd/root/filename.d
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ nothrow:
* Returns:
* if found, filename combined with path, otherwise null
*/
extern (C++) static const(char)* searchPath(const ref Strings path, const char* name, bool cwd)
extern (C++) static const(char)* searchPath(const ref Strings path, const(char)* name, bool cwd)
{
return searchPath(path[], name.toDString, cwd).ptr;
}
Expand Down
2 changes: 1 addition & 1 deletion dmd/root/filename.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct FileName

bool equalsExt(const char *ext);

static const char *searchPath(Strings& path, const char *name, bool cwd);
static const char *searchPath(const Strings& path, const char *name, bool cwd);
static int exists(const char *name);
static bool ensurePathExists(const char *path);
static const char *canonicalName(const char *name);
Expand Down

0 comments on commit 5b2dcf3

Please sign in to comment.