aboutsummaryrefslogtreecommitdiff
path: root/copypasta/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'copypasta/src/lib.rs')
-rw-r--r--copypasta/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/copypasta/src/lib.rs b/copypasta/src/lib.rs
index 722142aa..9fe354f6 100644
--- a/copypasta/src/lib.rs
+++ b/copypasta/src/lib.rs
@@ -1,5 +1,9 @@
//! A cross-platform clipboard library
+// This has to be here due to macro_use
+#[cfg(target_os = "macos")]
+#[macro_use] extern crate objc;
+
/// Types that can get the system clipboard contents
pub trait Load : Sized {
/// Errors encountered when working with a clipboard. Each implementation is