ExternalFunctionCallback.st
changeset 24337 d619e74eae27
parent 24336 50aac49521fe
child 24338 9516492f8920
equal deleted inserted replaced
24336:50aac49521fe 24337:d619e74eae27
    32 # else
    32 # else
    33 #  define DEBUG_IF(flag, code) /* nothing */
    33 #  define DEBUG_IF(flag, code) /* nothing */
    34 # endif
    34 # endif
    35 
    35 
    36 #ifdef HAVE_FFI
    36 #ifdef HAVE_FFI
    37 # include <ffi/ffi.h>
    37 # ifdef __osx__
       
    38 #  include <ffi/ffi.h>
       
    39 # else
       
    40 #  include <ffi.h>
       
    41 # endif
    38 # define MAX_ARGS    128
    42 # define MAX_ARGS    128
    39 
    43 
    40 # ifdef USE_STANDARD_FFI
    44 # ifdef USE_STANDARD_FFI
    41 #  define __get_ffi_type_sint() &ffi_type_sint
    45 #  define __get_ffi_type_sint() &ffi_type_sint
    42 #  define __get_ffi_type_sint8() &ffi_type_sint8
    46 #  define __get_ffi_type_sint8() &ffi_type_sint8