Skip to content

Commit

Permalink
MacOS: Add NFD_ClearError() definition (#88)
Browse files Browse the repository at this point in the history
This function was overlooked in the original implementation, and trying to call it would lead to a linker error.
  • Loading branch information
iTrooz authored Mar 24, 2023
1 parent 44e63d5 commit d1b80e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nfd_cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ static nfdresult_t CopyUtf8String(const char* utf8Str, nfdnchar_t** out) {
return g_errorstr;
}

void NFD_ClearError(void) {
NFDi_SetError(NULL);
}

void NFD_FreePathN(nfdnchar_t* filePath) {
NFDi_Free((void*)filePath);
}
Expand Down

0 comments on commit d1b80e3

Please sign in to comment.