From: Po Lu Date: Sat, 28 May 2022 01:21:40 +0000 (+0800) Subject: ; * src/nsselect.m (ns_decode_data_to_pasteboard): Fix GNUstep build. X-Git-Tag: emacs-29.0.90~1910^2~378 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2c8e8a299dadce7dc1bae2adf73ee9303856bb6;p=emacs.git ; * src/nsselect.m (ns_decode_data_to_pasteboard): Fix GNUstep build. --- diff --git a/src/nsselect.m b/src/nsselect.m index ce9d8ab3183..1ff627e6579 100644 --- a/src/nsselect.m +++ b/src/nsselect.m @@ -590,8 +590,14 @@ ns_decode_data_to_pasteboard (Lisp_Object type, Lisp_Object data, [pasteboard declareTypes: new owner: nil]; + +#if NS_USE_NSPasteboardTypeFileURL [pasteboard setString: [NSString stringWithLispString: data] forType: NSPasteboardTypeFileURL]; +#else + [pasteboard setString: [NSString stringWithLispString: data] + forType: NSFilenamesPboardType]; +#endif } else signal_error ("Unknown pasteboard type", type);