aboutsummaryrefslogtreecommitdiff
path: root/include/irrpack.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-02-26 11:38:43 +0100
committersfan5 <sfan5@live.de>2022-02-26 12:11:27 +0100
commitdf908ef4eaa7fd3292faa34d690edce40106da3c (patch)
tree7b8904f8bd7714768831ecfbe7c1c54a3e65549e /include/irrpack.h
parent01586f584aef460686c9ac7a59900ea90eb23fe8 (diff)
downloadirrlicht-df908ef4eaa7fd3292faa34d690edce40106da3c.tar.xz
Get rid of various old compiler and platform checks
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