diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-10-30 12:45:11 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-10-30 12:45:11 -0700 |
commit | 26c12d203cf4be13fba4b886a78632a8bef77c68 (patch) | |
tree | e76e8fd2075f96bcb265a6efefd5ce493479929c | |
parent | 0c8e5e8a80dee9554b4669429a08b88e174ec396 (diff) | |
download | libnet-26c12d203cf4be13fba4b886a78632a8bef77c68.tar.gz |
Don't need iphlpapi.h included.
-rw-r--r-- | libnet/include/win32/libnet.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libnet/include/win32/libnet.h b/libnet/include/win32/libnet.h index fe37c91..a8704ff 100644 --- a/libnet/include/win32/libnet.h +++ b/libnet/include/win32/libnet.h @@ -55,6 +55,9 @@ extern "C" { #define LIBNET_LIL_ENDIAN 1
#define HAVE_CONFIG_H 1
+/* TODO Definitions and includes below should be in a private header, libnet src needs them, libnet
+ library users don't (and they have negative side effects).
+ */
/* Some UNIX to Win32 conversions */
#define STDOUT_FILENO stdout
#define snprintf _snprintf
@@ -64,7 +67,9 @@ extern "C" { #define random rand
#define close closesocket
#define __func__ __FUNCTION__
+#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
+#endif
/* __FUNCTION__ available in VC ++ 7.0 (.NET) and greater */
#if _MSC_VER < 1300
@@ -95,9 +100,6 @@ extern "C" { #include "stdint.h"
-/* Libnet's unnamespaced ICMP6_ macros stomp on the enumerated versions of
- these names in the MS headers, so pre-include this header. */
-#include <iphlpapi.h> /* From the Microsoft Platform SDK */
#include "../libnet/libnet-macros.h"
#include "../libnet/libnet-headers.h"
|