GerHobbelt / pthread-win32

clone of pthread-win32 (a.k.a. pthreads4w) + local tweaks (including MSVC2008 - MSVC2022 project files)
Other
350 stars 166 forks source link

_ptw32.h not found in sched.h on VS2015 builds #20

Open g4jc opened 2 years ago

g4jc commented 2 years ago

I'm not sure if this is a bug in the VS2015 project file or if there's been a typo for 6 years in sched.h, but the following fixes the build error for me and I was able to get it to build.

Change line 47 from: #include <_ptw32.h>

to

#include "_ptw32.h"

GerHobbelt commented 2 years ago

I'll treat it as an odd one-off bug in VS2015 (which I don't have installed any more) as none of the other compilers (including VS2019) complain about this AFAICT.

Keeping it open in case anyone else stumbles across this issue.

Thanks for reporting!