• Show log

    Commit

  • Hash : 5264a7c5
    Author : matoro
    Date : 2022-07-21T17:54:19

    Move FFI_TYPE definitions above <ffitarget.h> include (#722)
    
    For powerpc at least, these definitions are referenced in the
    target-specific ffitarget.h.  Discovered in the jffi project.  Should
    close https://github.com/libffi/libffi/issues/637.  Downstream jffi bug
    https://github.com/jnr/jffi/issues/107.  Downstream distro bug
    https://bugs.gentoo.org/827215.
    
    Testing - both libffi and jffi test suites pass with this patch applied,
    at least on ppc64le linux.  I did not see any warnings about
    redefinitions.
    
    Tested versions - libffi 3.4.2, jffi 1.3.6 and 1.3.9.