From c3c48cf0875f7c1f9c9d3531d3310393dfc946fd Mon Sep 17 00:00:00 2001 From: Jason Mobarak Date: Thu, 13 Jun 2019 23:46:55 -0700 Subject: [PATCH] Modify to work with Rust's bindgen --- c/include/libsbp/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c/include/libsbp/common.h b/c/include/libsbp/common.h index 2d62126444..3062e8d4aa 100644 --- a/c/include/libsbp/common.h +++ b/c/include/libsbp/common.h @@ -14,9 +14,11 @@ #ifndef LIBSBP_COMMON_H #define LIBSBP_COMMON_H +#ifndef _RUSTC_BINDGEN_ #include #include #include +#endif /* Should match guard in libswiftnav/common.h */ #ifndef COMMON_INT_TYPES @@ -28,6 +30,7 @@ * `int` which can lead to portability issues between different platforms. * \{ */ +#ifndef _RUSTC_BINDGEN_ /** Signed 8-bit integer. */ typedef int8_t s8; /** Signed 16-bit integer. */ @@ -44,6 +47,7 @@ typedef uint16_t u16; typedef uint32_t u32; /** Unsigned 64-bit integer. */ typedef uint64_t u64; +#endif #endif