Small patches to prevent macro redefinition warning when building on windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Small patches to prevent macro redefinition warning when building on windows

Holzinger, Axel  (ALC NetworX GmbH)
Hi Ross et al,

when building with VS2010 and having _POSIX_C_SOURCE defined greater or equal than 200112, two macro redefinition warnings are spit out, one in pthread.h and one in sched.h.

I have made two patches that just undefine PTW32_LEVEL resp. PTW32_SCHED_LEVEL before (re-)defining it. Patches attached.

Cheers
Axel