DaanDeMeyer / reproc

A cross-platform (C99/C++11) process library
MIT License
552 stars 65 forks source link

Compilation error in the process_create() if the ATTRIBUTE_LIST_FOUND is not defined #15

Closed KVic closed 5 years ago

KVic commented 5 years ago

https://github.com/DaanDeMeyer/reproc/blob/d50c91b68a3a54d69b97a4f3c2ba496f5963203a/reproc/src/windows/process.c#L103

It looks like this branch of #if defined(ATTRIBUTE_LIST_FOUND) was not updated when the options parameter was added. Therefore, a compilation error occurs if the ATTRIBUTE_LIST_FOUND is not defined.

DaanDeMeyer commented 5 years ago

Thanks for reporting the issue! I've pushed a commit that should fix the issue. I'll probably release 5.0.0 soon with the fix included