mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-05 22:04:57 +00:00
(svn r18074) -Fix [FS#3314]: [OSX] Don't link clipboard support twice when building without Cocoa.
This commit is contained in:
parent
1066af500f
commit
32c6633bef
@ -119,6 +119,7 @@ const char *GetCurrentLocale(const char *)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef WITH_COCOA
|
||||||
bool GetClipboardContents(char *buffer, size_t buff_len)
|
bool GetClipboardContents(char *buffer, size_t buff_len)
|
||||||
{
|
{
|
||||||
NSPasteboard *pb = [ NSPasteboard generalPasteboard ];
|
NSPasteboard *pb = [ NSPasteboard generalPasteboard ];
|
||||||
@ -135,3 +136,4 @@ bool GetClipboardContents(char *buffer, size_t buff_len)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user