diff --git a/src/MacVim/edit-in-odb/src/Edit in ODBEditor.mm b/src/MacVim/edit-in-odb/src/Edit in ODBEditor.mm index c1e4360547..3347247b74 100644 --- a/src/MacVim/edit-in-odb/src/Edit in ODBEditor.mm +++ b/src/MacVim/edit-in-odb/src/Edit in ODBEditor.mm @@ -220,7 +220,11 @@ struct PBX_SelectionRange } else { +#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4) + [[NSFileManager defaultManager] removeItemAtPath:fileName error:NULL]; +#else [[NSFileManager defaultManager] removeFileAtPath:fileName handler:nil]; +#endif [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; }