Skip to content

Commit 6a23995

Browse files
committed
rust: exclude DETECT_BYTEMATH_ENDIAN_DEFAULT from bindings
to deal with the failure due to cbindgen updates and mismatches in generated bindings. detect-bytemath.c:61: error: "DETECT_BYTEMATH_ENDIAN_DEFAULT" redefined [-Werror] 61 | #define DETECT_BYTEMATH_ENDIAN_DEFAULT (uint8_t) BigEndian | In file included from rust.h:34, from detect-bytemath.c:32: ./../rust/gen/rust-bindings.h:5071: note: this is the location of the previous definition 5071 | #define DETECT_BYTEMATH_ENDIAN_DEFAULT BigEndian |
1 parent d189f7a commit 6a23995

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/cbindgen.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ exclude = [
112112
"IPPROTO_TCP",
113113
"IPPROTO_UDP",
114114
"SRepCatGetByShortname",
115+
"DETECT_BYTEMATH_ENDIAN_DEFAULT",
115116
]
116117

117118
# Types of items that we'll generate. If empty, then all types of item are emitted.

0 commit comments

Comments
 (0)