diff --git a/core-graphics-types/src/lib.rs b/core-graphics-types/src/lib.rs index f34bf0120..cc8fe3115 100644 --- a/core-graphics-types/src/lib.rs +++ b/core-graphics-types/src/lib.rs @@ -7,6 +7,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))] + extern crate libc; extern crate core_foundation;