mind MSVC's UNALIGNED macro (GH #335 pt.2)
This change addresses a compile warning that Gisle Vanem troubleshooted
in MSVC build (<winnt.h> defines UNALIGNED).
diff --git a/tcpdump-stdinc.h b/tcpdump-stdinc.h
index a5634fb..eb6c942 100644
--- a/tcpdump-stdinc.h
+++ b/tcpdump-stdinc.h
@@ -171,7 +171,11 @@
* Note: this also requires that padding be put into the structure,
* at least for compilers where it's implemented as __attribute__((packed)).
*/
+#if defined(_MSC_VER) && defined(UNALIGNED)
+/* MSVC may have its own macro defined with the same name and purpose. */
+#else
#define UNALIGNED __attribute__((packed))
+#endif
#if defined(WIN32) || defined(MSDOS)
#define FOPEN_READ_TXT "rt"