aboutsummaryrefslogtreecommitdiff
path: root/include/irrpack.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/irrpack.h')
-rw-r--r--include/irrpack.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/include/irrpack.h b/include/irrpack.h
index ff922d0..6ee1113 100644
--- a/include/irrpack.h
+++ b/include/irrpack.h
@@ -13,26 +13,13 @@
// in between!
// byte-align structures
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
+#if defined(_MSC_VER)
# pragma warning(disable: 4103)
# pragma pack( push, packing )
# pragma pack( 1 )
# define PACK_STRUCT
-#elif defined( __DMC__ )
-# pragma pack( push, 1 )
-# define PACK_STRUCT
#elif defined( __GNUC__ )
- // Using pragma pack might work with earlier gcc versions already, but
- // it started to be necessary with gcc 4.7 on mingw unless compiled with -mno-ms-bitfields.
- // And I found some hints on the web that older gcc versions on the other hand had sometimes
- // trouble with pragma pack while they worked with __attribute__((packed)).
-# if (__GNUC__ > 4 ) || ((__GNUC__ == 4 ) && (__GNUC_MINOR__ >= 7))
-# pragma pack( push, packing )
-# pragma pack( 1 )
-# define PACK_STRUCT
-# else
-# define PACK_STRUCT __attribute__((packed))
- #endif
+# define PACK_STRUCT __attribute__((packed))
#else
# error compiler not supported
#endif