Browse Source

Fix packing on mingw

Andrew Pamment 5 years ago
parent
commit
79145da550
1 changed files with 2 additions and 2 deletions
  1. 2 2
      OpenDoor.h

+ 2 - 2
OpenDoor.h

@@ -560,7 +560,7 @@ typedef void(ODFAR OD_PERSONALITY_PROC)(BYTE);
 #pragma option -a-
 #endif /* __TURBOC__ >= 0x295 */
 #endif /* __TURBOC__ */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(WIN32)
 #pragma pack(1)
 #endif /* _MSC_VER */
 
@@ -852,7 +852,7 @@ typedef struct
 } tODControl;
 
 /* Restore original structure alignment, if possible. */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(WIN32)
 #pragma pack()
 #endif /* _MSC_VER */