Ticket #265 (closed defect: fixed)
[Mac OS X] premake fails to include libxml2 with threadding enabled
|Reported by:||espes||Owned by:|
|Priority:||Should Have||Milestone:||Pre-Alpha 1|
|Component:||Core engine||Keywords:||mac premake libxml2|
libxml2 checks for thread support by not only checking if it was compiled in, but also by checking whether "_REENTRANT" or "MT" is set. Usually, AFAIK, these are set on *nix when pthread is included, but since on OS X GNU threads are included in libSystem, this does not happen.
I propose the attached fix, but if anyone has a better idea, feel free.