basho/erlang_js — pull request #23 by jtuple (2012-06-13 17:33:03+00:00)
Title: Fix pre-R15 compatibility

Compiling on R14 failed with the following error:

```
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.