diff options
| author | Po Lu | 2022-05-28 09:21:40 +0800 |
|---|---|---|
| committer | Po Lu | 2022-05-28 09:21:40 +0800 |
| commit | b2c8e8a299dadce7dc1bae2adf73ee9303856bb6 (patch) | |
| tree | 42a3399ba5d2d026adb256b0fd84015c80719766 | |
| parent | 6d6d1adbe7aa507fc15b1c6830f2eac5e7592ebc (diff) | |
| download | emacs-b2c8e8a299dadce7dc1bae2adf73ee9303856bb6.tar.gz emacs-b2c8e8a299dadce7dc1bae2adf73ee9303856bb6.zip | |
; * src/nsselect.m (ns_decode_data_to_pasteboard): Fix GNUstep build.
| -rw-r--r-- | src/nsselect.m | 6 |
1 files changed, 6 insertions, 0 deletions
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, | |||
| 590 | 590 | ||
| 591 | [pasteboard declareTypes: new | 591 | [pasteboard declareTypes: new |
| 592 | owner: nil]; | 592 | owner: nil]; |
| 593 | |||
| 594 | #if NS_USE_NSPasteboardTypeFileURL | ||
| 593 | [pasteboard setString: [NSString stringWithLispString: data] | 595 | [pasteboard setString: [NSString stringWithLispString: data] |
| 594 | forType: NSPasteboardTypeFileURL]; | 596 | forType: NSPasteboardTypeFileURL]; |
| 597 | #else | ||
| 598 | [pasteboard setString: [NSString stringWithLispString: data] | ||
| 599 | forType: NSFilenamesPboardType]; | ||
| 600 | #endif | ||
| 595 | } | 601 | } |
| 596 | else | 602 | else |
| 597 | signal_error ("Unknown pasteboard type", type); | 603 | signal_error ("Unknown pasteboard type", type); |