[project @ 2001-08-29 17:24:25 by qrczak]
authorqrczak <unknown>
Wed, 29 Aug 2001 17:24:25 +0000 (17:24 +0000)
committerqrczak <unknown>
Wed, 29 Aug 2001 17:24:25 +0000 (17:24 +0000)
commitaa84d93a9a3a3ff9b606ce24b6c73f5f06ff2c0a
treed9e0f4bee41f87eeefd96821ffd7bf3d0f787b8d
parent2744e4fb443cbfe1f3eeeb781079382071ca3cda
[project @ 2001-08-29 17:24:25 by qrczak]
Remove annoying warnings about using a deprecated extension
when compiling via gcc-3.0.

#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

A test program (hsking) compiled fine with gcc-3.0!
ghc/includes/Closures.h
ghc/includes/InfoTables.h
ghc/includes/Stg.h
ghc/includes/TSO.h