| 1 |
#if 0 |
| 2 |
DEF DEFINE_FREEBSD = 0 |
| 3 |
#endif |
| 4 |
|
| 5 |
|
| 6 |
#include <stdarg.h> |
| 7 |
#include <stdbool.h> |
| 8 |
#include <stdint.h> |
| 9 |
#include <stdlib.h> |
| 10 |
|
| 11 |
typedef struct { |
| 12 |
int32_t x; |
| 13 |
} Foo; |
| 14 |
|
| 15 |
typedef struct { |
| 16 |
uint64_t y; |
| 17 |
} RenamedTy; |
| 18 |
|
| 19 |
#if !defined(DEFINE_FREEBSD) |
| 20 |
typedef struct { |
| 21 |
uint8_t field; |
| 22 |
} NoExternTy; |
| 23 |
#endif |
| 24 |
|
| 25 |
#if !defined(DEFINE_FREEBSD) |
| 26 |
typedef struct { |
| 27 |
NoExternTy field; |
| 28 |
} ContainsNoExternTy; |
| 29 |
#endif |
| 30 |
|
| 31 |
#if defined(DEFINE_FREEBSD) |
| 32 |
typedef struct { |
| 33 |
uint64_t field; |
| 34 |
} ContainsNoExternTy; |
| 35 |
#endif |
| 36 |
|
| 37 |
#ifdef __cplusplus |
| 38 |
extern "C" { |
| 39 |
#endif // __cplusplus |
| 40 |
|
| 41 |
void root(Foo a); |
| 42 |
|
| 43 |
void renamed_func(RenamedTy a); |
| 44 |
|
| 45 |
void no_extern_func(ContainsNoExternTy a); |
| 46 |
|
| 47 |
#ifdef __cplusplus |
| 48 |
} // extern "C" |
| 49 |
#endif // __cplusplus |