Compiling c_src/driver_comm.c
c_src/driver_comm.h:32: error: expected ')' before 'size'
The line in question:
void *ejs_alloc(ErlDrvSizeT size);
The problem is that ErlDrvSizeT is an R15 type. We have erl_compatibility.h that defines a compat type for pre-R15 builds, but the include file was being included after driver_comm.h.
This pull-request fixes the include order, and things now compile as desired.
Compiling on R14 failed with the following error:
The line in question:
The problem is that
ErlDrvSizeT
is an R15 type. We haveerl_compatibility.h
that defines a compat type for pre-R15 builds, but the include file was being included afterdriver_comm.h
.This pull-request fixes the include order, and things now compile as desired.