From 32c6633bef1b2382ed882576e7523e0fe96d7a1e Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sat, 14 Nov 2009 15:26:43 +0000 Subject: [PATCH] (svn r18074) -Fix [FS#3314]: [OSX] Don't link clipboard support twice when building without Cocoa. --- src/os/macosx/macos.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm index a6c2957908..666602937f 100644 --- a/src/os/macosx/macos.mm +++ b/src/os/macosx/macos.mm @@ -119,6 +119,7 @@ const char *GetCurrentLocale(const char *) } +#ifdef WITH_COCOA bool GetClipboardContents(char *buffer, size_t buff_len) { NSPasteboard *pb = [ NSPasteboard generalPasteboard ]; @@ -135,3 +136,4 @@ bool GetClipboardContents(char *buffer, size_t buff_len) return true; } +#endif