diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 6a952c4..69a259e 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -40,6 +40,7 @@ use std::default::Default; use std::ffi::{CStr, CString}; use std::ops::Drop; use std::os::raw::{c_char, c_void}; +use std::ptr; // Simple offset_of macro akin to C++ offsetof #[macro_export]