Fix issues with OSX

This commit is contained in:
Ginger Bill
2017-08-11 12:47:07 +01:00
parent d7bd3f8402
commit a09d5959ef
3 changed files with 48 additions and 97 deletions
+1 -1
View File
@@ -7991,7 +7991,7 @@ gb_inline b32 gb_file_move(char const *existing_filename, char const *new_filena
b32 gb_file_remove(char const *filename) {
#if defined(GB_SYSTEM_OSX)
return unlink(existing_filename) != -1;
return unlink(filename) != -1;
#else
return remove(filename) == 0;
#endif