<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>[patch] win32 compilation problem</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Lucida Console">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Lucida Console">It's just to fix a compilation problem under win32 when one doesn't build ENet as a DLL: The client project does not define ENET_DLL, since it links against a static lib, which causes a fearful amount of compilation errors when including the public headers.</FONT></P>
<P><FONT SIZE=2 FACE="Lucida Console">Win32.h:</FONT>
</P>
<P><FONT SIZE=2 FACE="Lucida Console"> #if defined ENET_DLL</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console"> #if defined ENET_BUILDING_LIB</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console"> #define ENET_API __declspec( dllexport )</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console"> #else</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console"> #define ENET_API __declspec( dllimport )</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console"> #endif /* ENET_BUILDING_LIB */</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console">+ #else</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console">+ #define ENET_API extern</FONT>
<BR><FONT SIZE=2 FACE="Lucida Console"> #endif /* ENET_DLL */</FONT>
</P>
<BR>
<P><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">__________________________________</FONT>
<BR><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">Benoit Germain</FONT>
<BR><A HREF="mailto:bgermain@ubisoft.fr"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Lucida Console">mailto:bgermain@ubisoft.fr</FONT></U></A>
</P>
<P><FONT COLOR="#660000" SIZE=2 FACE="Lucida Console">Person who says it cannot be done should not interrupt person doing it.</FONT>
<BR><FONT COLOR="#660000" SIZE=2 FACE="Lucida Console">-- Chinese Proverb</FONT>
</P>
<P><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">People who think they're smart annoy those of us who are.</FONT>
<BR><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">-- double-U's Proverb ?</FONT>
<BR><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">__________________________________</FONT>
</P>
</BODY>
</HTML>