1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-10 01:34:36 -08:00

Fix build on earlier versions of Mac OS X

* src/nsselect.m (ns_decode_data_to_pasteboard): Respect
NS_USE_NSPasteboardTypeFileUrl.
This commit is contained in:
Po Lu 2022-05-28 09:19:33 +08:00
parent ffab237cbf
commit 6d6d1adbe7

View file

@ -582,7 +582,11 @@ ns_decode_data_to_pasteboard (Lisp_Object type, Lisp_Object data,
{
CHECK_STRING (data);
#if NS_USE_NSPasteboardTypeFileURL
new = [types arrayByAddingObject: NSPasteboardTypeFileURL];
#else
new = [types arrayByAddingObject: NSFilenamesPboardType];
#endif
[pasteboard declareTypes: new
owner: nil];