RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
46
zeroidc/vendor/cbindgen/tests/expectations/rename_crate.cpp
vendored
Normal file
46
zeroidc/vendor/cbindgen/tests/expectations/rename_crate.cpp
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
#if 0
|
||||
DEF DEFINE_FREEBSD = 0
|
||||
#endif
|
||||
|
||||
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <ostream>
|
||||
#include <new>
|
||||
|
||||
struct Foo {
|
||||
int32_t x;
|
||||
};
|
||||
|
||||
struct RenamedTy {
|
||||
uint64_t y;
|
||||
};
|
||||
|
||||
#if !defined(DEFINE_FREEBSD)
|
||||
struct NoExternTy {
|
||||
uint8_t field;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if !defined(DEFINE_FREEBSD)
|
||||
struct ContainsNoExternTy {
|
||||
NoExternTy field;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(DEFINE_FREEBSD)
|
||||
struct ContainsNoExternTy {
|
||||
uint64_t field;
|
||||
};
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
||||
void root(Foo a);
|
||||
|
||||
void renamed_func(RenamedTy a);
|
||||
|
||||
void no_extern_func(ContainsNoExternTy a);
|
||||
|
||||
} // extern "C"
|
||||
Reference in New Issue
Block a user