summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2009-11-14 15:26:43 +0000
committermichi_cc <michi_cc@openttd.org>2009-11-14 15:26:43 +0000
commit32c6633bef1b2382ed882576e7523e0fe96d7a1e (patch)
treeba84592780777d1cff8d57bbfd62e9599b356187 /src/os
parent1066af500ff2795b2190f475a84e05cde35960e7 (diff)
downloadopenttd-32c6633bef1b2382ed882576e7523e0fe96d7a1e.tar.xz
(svn r18074) -Fix [FS#3314]: [OSX] Don't link clipboard support twice when building without Cocoa.
Diffstat (limited to 'src/os')
-rw-r--r--src/os/macosx/macos.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm
index a6c295790..666602937 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