This change addresses a compile warning that Gisle Vanem troubleshooted
in MSVC build (<winnt.h> defines UNALIGNED).
* Note: this also requires that padding be put into the structure,
* at least for compilers where it's implemented as __attribute__((packed)).
*/
* 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))
#define UNALIGNED __attribute__((packed))
#if defined(WIN32) || defined(MSDOS)
#define FOPEN_READ_TXT "rt"
#if defined(WIN32) || defined(MSDOS)
#define FOPEN_READ_TXT "rt"