]> git.pond.sub.org Git - empserver/commit
[_WIN32]: Add #define WIN32 whereever winsock2.h is used. There is bug
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 20 Mar 2005 11:07:45 +0000 (11:07 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 20 Mar 2005 11:07:45 +0000 (11:07 +0000)
commitf826221a58462b58b3b0073dea5885944c4c718b
treeac6c23de2d2b2cc2145d3795a91400d79c91253b
parent4bb4376a570a4fed47aa3a423a32c4e3225057a8
[_WIN32]: Add #define WIN32 whereever winsock2.h is used. There is bug
in the VC7 version of winsock2.h.  In version VC7, the #pragma
pack(push) and pack(pop) have an #ifdef !WIN32 add to them.  However,
if WIN32 is not defined at the beginning, the push is done but by the
time the pop is reach something else has set WIN32 define so the pop
is not done, and it changes the default pack from /Zp2 to /Zp4, which
makes the data structures incompatible between objects with winsock2.h
and without winsock2.h.  By adding the WIN32 both the push and pop are
not done.
src/lib/empthread/ntthread.c
src/lib/gen/io.c
src/lib/player/accept.c
src/server/main.c