summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomasVolkert <thomas@homer-conferencing.com>2012-12-18 15:35:05 +0100
committerSam Roberts <vieuxtech@gmail.com>2012-12-18 21:41:27 -0800
commit4d378437338f39378931fac2895c9975cb6264cd (patch)
tree236706dac58b970c3670752333d4d8a5c7f02ff3
parent389a2d7e9f375e9d6998078e38a2ab841f18def5 (diff)
downloadlibnet-4d378437338f39378931fac2895c9975cb6264cd.tar.gz
Automatic link options ("#pragma comment(lib, ...)") are only for MSVC
-rw-r--r--libnet/include/win32/libnet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnet/include/win32/libnet.h b/libnet/include/win32/libnet.h
index 9a6f8b2..18a5d6c 100644
--- a/libnet/include/win32/libnet.h
+++ b/libnet/include/win32/libnet.h
@@ -74,10 +74,13 @@ extern "C" {
#define __FUNCTION__ __FILE__
#endif
+/* the following is only supported by MSVC and not by MinGW/MSys environements */
+#ifdef _MSC_VER
#pragma comment (lib,"ws2_32") /* Winsock 2 */
#pragma comment (lib,"iphlpapi") /* IP Helper */
#pragma comment (lib,"wpcap") /* Winpcap */
#pragma comment (lib,"packet")
+#endif
/* FIXME this needs manual update during release packaging. */
#define LIBNET_VERSION "1.1.6"