Open ghost opened 1 year ago
windows.h must be included after winsock2.h, ws2tcpip.h and tlhelp32.h. You also forgot to include stdint.h.
windows.h
winsock2.h
ws2tcpip.h
tlhelp32.h
stdint.h
There is no check for _MSC_VER so msvclibx.h will be always be included even though it's not part of the source with ENV_MINGW.
_MSC_VER
msvclibx.h
ENV_MINGW
The same for pthreads4w headers, as I tell you MSYS2 doesn't need pthreads4w: https://github.com/gozfree/gear-lib/issues/100
pthreads4w
There are also no check for _MSC_VER so pthreads4w headers are always included. Don't you feel it silly? Imagine you are on Cygwin where pthreads is native, you still have to use pthreads4w?
pthreads
msys2 env will follow linux makefile
windows.h
must be included afterwinsock2.h
,ws2tcpip.h
andtlhelp32.h
. You also forgot to includestdint.h
.There is no check for
_MSC_VER
somsvclibx.h
will be always be included even though it's not part of the source withENV_MINGW
.The same for
pthreads4w
headers, as I tell you MSYS2 doesn't needpthreads4w
: https://github.com/gozfree/gear-lib/issues/100There are also no check for
_MSC_VER
sopthreads4w
headers are always included. Don't you feel it silly? Imagine you are on Cygwin wherepthreads
is native, you still have to usepthreads4w
?