This is the mail archive of the pthreads-win32@sourceware.org mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Cheers
Axel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]