< prev index next >

modules/javafx.media/src/main/native/gstreamer/3rd_party/libffi/src/types.c

Print this page
*** 36,10 ***
--- 36,11 ---
  #define FFI_TYPEDEF(name, type, id, maybe_const)\
  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),  \
    id, NULL                  \
  }

*** 50,19 ***
  };                          \
  struct struct_align_complex_##name {            \
    char c;                       \
    _Complex type x;                  \
  };                          \
  maybe_const ffi_type ffi_type_complex_##name = {    \
    sizeof(_Complex type),                \
    offsetof(struct struct_align_complex_##name, x),  \
    FFI_TYPE_COMPLEX,                 \
    (ffi_type **)ffi_elements_complex_##name      \
  }
  
  /* Size and alignment are fake here. They must not be 0. */
! const ffi_type ffi_type_void = {
    1, 1, FFI_TYPE_VOID, NULL
  };
  
  FFI_TYPEDEF(uint8, UINT8, FFI_TYPE_UINT8, const);
  FFI_TYPEDEF(sint8, SINT8, FFI_TYPE_SINT8, const);
--- 51,20 ---
  };                          \
  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),  \
    FFI_TYPE_COMPLEX,                 \
    (ffi_type **)ffi_elements_complex_##name      \
  }
  
  /* Size and alignment are fake here. They must not be 0. */
! FFI_EXTERN const ffi_type ffi_type_void = {
    1, 1, FFI_TYPE_VOID, NULL
  };
  
  FFI_TYPEDEF(uint8, UINT8, FFI_TYPE_UINT8, const);
  FFI_TYPEDEF(sint8, SINT8, FFI_TYPE_SINT8, const);
< prev index next >