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:
36
zeroidc/vendor/cbindgen/tests/expectations/maybeuninit.both.compat.c
vendored
Normal file
36
zeroidc/vendor/cbindgen/tests/expectations/maybeuninit.both.compat.c
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
#if 0
|
||||
''' '
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
template <typename T>
|
||||
using MaybeUninit = T;
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
' '''
|
||||
#endif
|
||||
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct NotReprC______i32 NotReprC______i32;
|
||||
|
||||
typedef struct NotReprC______i32 Foo;
|
||||
|
||||
typedef struct MyStruct {
|
||||
const int32_t *number;
|
||||
} MyStruct;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
void root(const Foo *a, const struct MyStruct *with_maybe_uninit);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif // __cplusplus
|
||||
Reference in New Issue
Block a user