Skip to content

Commit

Permalink
fix module loading for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosvm committed Aug 12, 2023
1 parent f0de833 commit fad7272
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ static inline HkString *path_match(HkString *path, HkString *name, HkString *cur

static inline bool is_relative(char *filename)
{
#ifdef _WIN32
return filename[0] != DIR_SEP[0] && filename[1] != ':';
#else
return filename[0] != DIR_SEP[0];
#endif
}

static inline HkString *get_module_file(HkString *relFile, HkString *currFile)
Expand Down

0 comments on commit fad7272

Please sign in to comment.