1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 22:20:52 -08:00

; * src/nsselect.m (ns_decode_data_to_pasteboard): Fix GNUstep build.

This commit is contained in:
Po Lu 2022-05-28 09:21:40 +08:00
parent 6d6d1adbe7
commit b2c8e8a299

View file

@ -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);