]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libffi/src/types.c
libffi: Sync with libffi 3.4.2
[thirdparty/gcc.git] / libffi / src / types.c
index 7e80aec6eb4b66da2a583cbb159da450dff6cd50..9ec27f6cf37676d83bfb489bbe1bb7c7c7363378 100644 (file)
@@ -38,6 +38,7 @@ struct struct_align_##name {                  \
   char c;                                      \
   type x;                                      \
 };                                             \
+FFI_EXTERN                                     \
 maybe_const ffi_type ffi_type_##name = {       \
   sizeof(type),                                        \
   offsetof(struct struct_align_##name, x),     \
@@ -52,6 +53,7 @@ struct struct_align_complex_##name {                  \
   char c;                                              \
   _Complex type x;                                     \
 };                                                     \
+FFI_EXTERN                                             \
 maybe_const ffi_type ffi_type_complex_##name = {       \
   sizeof(_Complex type),                               \
   offsetof(struct struct_align_complex_##name, x),     \
@@ -60,7 +62,7 @@ maybe_const ffi_type ffi_type_complex_##name = {      \
 }
 
 /* Size and alignment are fake here. They must not be 0. */
-const ffi_type ffi_type_void = {
+FFI_EXTERN const ffi_type ffi_type_void = {
   1, 1, FFI_TYPE_VOID, NULL
 };