Remove libc dependency on non-linux platforms (#1976)

This commit is contained in:
Markus Røyset
2021-07-13 17:27:47 +02:00
committed by GitHub
parent 5a65347c4e
commit 8c91986dd3
3 changed files with 8 additions and 7 deletions

View File

@@ -2,6 +2,8 @@
#![allow(dead_code, non_snake_case, non_upper_case_globals)]
use std::ffi::c_void;
use cocoa::{
base::id,
foundation::{NSInteger, NSUInteger},
@@ -159,7 +161,7 @@ pub const IOYUV422Pixels: &str = "Y4U2V2";
pub const IO8BitOverlayPixels: &str = "O8";
pub type CGWindowLevel = i32;
pub type CGDisplayModeRef = *mut libc::c_void;
pub type CGDisplayModeRef = *mut c_void;
#[cfg_attr(
not(use_colorsync_cgdisplaycreateuuidfromdisplayid),