mirror of
https://github.com/openharmony/third_party_rust_linux-raw-sys.git
synced 2026-07-19 21:24:35 -04:00
Re-export ctypes.
Since linux-raw-sys uses ctypes types in its public APIs, re-export ctypes so that users can use it directly instead of having to redo the no-std incantations.
This commit is contained in:
+2
-2
@@ -2,10 +2,10 @@
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use std::os::raw as ctypes;
|
||||
pub use std::os::raw as ctypes;
|
||||
|
||||
#[cfg(feature = "no_std")]
|
||||
use cty as ctypes;
|
||||
pub use cty as ctypes;
|
||||
|
||||
// The rest of this file is auto-generated!
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "powerpc"))]
|
||||
|
||||
Reference in New Issue
Block a user