X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibffi.c;h=369fe3367ba5d46b3c24398e19ed6168503ab8c4;hb=ed5ebb3caac1ac8bf6a4b32eabfb523f23de8576;hp=288acd35134bfef10abeced9b5557ea135283a2d;hpb=c0999079ea85fecba8ab5eec386541fc1ce733b7;p=m6w6%2Fext-psi diff --git a/src/libffi.c b/src/libffi.c index 288acd3..369fe33 100644 --- a/src/libffi.c +++ b/src/libffi.c @@ -8,6 +8,7 @@ #include "php_psi.h" #include "libffi.h" +#include "engine.h" #undef PACKAGE #undef PACKAGE_BUGREPORT @@ -87,6 +88,7 @@ static inline ffi_type *psi_ffi_token_type(token_t t) { case PSI_T_BOOL: return &ffi_type_uchar; case PSI_T_INT: + case PSI_T_ENUM: return &ffi_type_sint; case PSI_T_LONG: return &ffi_type_slong;