#define read _read
#define close _close
#define O_RDONLY _O_RDONLY
-
-typedef short ino_t;
#endif /* __MINGW32__ */
#ifdef __MINGW32__
* 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"