diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-04-18 22:26:02 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-04-18 22:26:05 +0200 |
commit | 32ddd96972301a03dc0d594bda76da426785e722 (patch) | |
tree | 613d9d04382d201dd97282bd35cd1f7346a070ba /includes/Rts.h | |
parent | 87114ae13fd1f10dc00a6b4e64898da3e92d0266 (diff) | |
download | haskell-32ddd96972301a03dc0d594bda76da426785e722.tar.gz |
Remove obsolete/redundant FLEXIBLE_ARRAY macro
This macro is doubly redundant, first off all, ancient GCCs prior to
version 3.0 are not supported anymore, but more importantly, we require
a ISO C99 compliant compiler, so we can use the proper ISO C syntax
without worrying about compatibility.
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: carter, thomie
Differential Revision: https://phabricator.haskell.org/D2121
Diffstat (limited to 'includes/Rts.h')
-rw-r--r-- | includes/Rts.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/includes/Rts.h b/includes/Rts.h index 6f4f33effc..1ad1bba5f8 100644 --- a/includes/Rts.h +++ b/includes/Rts.h @@ -41,15 +41,6 @@ extern "C" { #include "rts/Types.h" #if __GNUC__ >= 3 -/* Assume that a flexible array member at the end of a struct - * can be defined thus: T arr[]; */ -#define FLEXIBLE_ARRAY -#else -/* Assume that it must be defined thus: T arr[0]; */ -#define FLEXIBLE_ARRAY 0 -#endif - -#if __GNUC__ >= 3 #define ATTRIBUTE_ALIGNED(n) __attribute__((aligned(n))) #else #define ATTRIBUTE_ALIGNED(n) /*nothing*/ |