[ENet-discuss] [patch] win32 compilation problem
Benoit Germain
bgermain at ubisoft.fr
Thu Nov 25 02:04:23 PST 2004
Hi,
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.
Win32.h:
#if defined ENET_DLL
#if defined ENET_BUILDING_LIB
#define ENET_API __declspec( dllexport )
#else
#define ENET_API __declspec( dllimport )
#endif /* ENET_BUILDING_LIB */
+ #else
+ #define ENET_API extern
#endif /* ENET_DLL */
__________________________________
Benoit Germain
mailto:bgermain at ubisoft.fr <mailto:bgermain at ubisoft.fr>
Person who says it cannot be done should not interrupt person doing it.
-- Chinese Proverb
People who think they're smart annoy those of us who are.
-- double-U's Proverb ?
__________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.puremagic.com/pipermail/enet-discuss/attachments/20041125/036e93ed/attachment.html
More information about the ENet-discuss
mailing list