This is the mail archive of the
mailing list for the pthreas-win32 project.
Small patches to prevent macro redefinition warning when building on windows
- From: "Holzinger, Axel (ALC NetworX GmbH)" <Axel dot Holzinger at alcnetworx dot de>
- To: "pthreads-win32 at sourceware dot org" <pthreads-win32 at sourceware dot org>
- Date: Mon, 9 Jan 2012 17:20:13 +0100
- Subject: Small patches to prevent macro redefinition warning when building on windows
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.