Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix tests

Louis Beaumont119634bed565
diff --git a/screenpipe-vision/src/apple.rs b/screenpipe-vision/src/apple.rs
index d03ed2f83..540dc14d0 100644
--- a/screenpipe-vision/src/apple.rs
+++ b/screenpipe-vision/src/apple.rs
@@ -2,6 +2,7 @@ use image::DynamicImage;
use std::ffi::CStr;
use std::os::raw::{c_char, c_uchar};
+#[cfg(target_os = "macos")]
#[link(name = "screenpipe")]
extern "C" {
fn perform_ocr(
diff --git a/screenpipe-vision/src/lib.rs b/screenpipe-vision/src/lib.rs
index 1e5636f15..5341cb288 100644
--- a/screenpipe-vision/src/lib.rs
+++ b/screenpipe-vision/src/lib.rs
@@ -1,3 +1,4 @@
+#[cfg(target_os = "macos")]
pub mod apple;
pub mod core;
pub mod utils;