Replaced the std::os::raw c types with types.rs
This commit is contained in:
parent
11ce86681f
commit
ab8066eb1a
|
@ -16,9 +16,11 @@
|
|||
//! # FFI bindings
|
||||
//! Direct bindings to the underlying C library functions. These should
|
||||
//! not be needed for most users.
|
||||
use std::mem;
|
||||
use std::hash;
|
||||
use std::os::raw::{c_int, c_uchar, c_uint, c_void};
|
||||
use core::{mem, hash};
|
||||
use core::ffi::c_void;
|
||||
use crate::types::*;
|
||||
// use std::os::raw::{c_int, c_uchar, c_uint, c_void};
|
||||
|
||||
|
||||
/// Flag for context to enable no precomputation
|
||||
pub const SECP256K1_START_NONE: c_uint = 1;
|
||||
|
|
|
@ -147,6 +147,7 @@ use core::{fmt, ptr, str};
|
|||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
mod types;
|
||||
pub mod constants;
|
||||
pub mod ecdh;
|
||||
pub mod ffi;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#![allow(non_camel_case_types)]
|
||||
pub type c_int = i32;
|
||||
pub type c_uchar = u8;
|
||||
pub type c_uint = u32;
|
||||
pub use core::ffi::c_void;
|
Loading…
Reference in New Issue