It's just checking that D `long` mangles to C `long` on LP64 platforms and C `long long` on others.  It should be fine to change the `int32_t` to `int` etc.  It does seem like stdint is useless for interfacing with D thanks to `int`/`long` and `long`/`long long`.