From 6a87e8cc02abc031f638402189b8d91117de0c4d Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 1 Sep 2009 22:13:16 +0200 Subject: [PATCH] Fix warning in ODBEditor (10.6) --- src/MacVim/edit-in-odb/src/Edit in ODBEditor.mm | 4 ++++ 1 file changed, 4 insertions(+) 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]; }