Instead of removing ARRAY_SIZE just #ifndef around it so patches can be

generated against the gcc-2.95.3 tag and this will compile. (as ARRAY_SIZE
isn't provided in libiberty included in gcc-2.95.3 itself
This commit is contained in:
jmc 2002-03-27 04:09:03 +00:00
parent a7839b0fdc
commit bb22d1e732

View File

@ -66,6 +66,10 @@ typedef enum
Doggone_Trailing_Comma_Dont_Work = 1
} bool;
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
#endif
#ifndef UNUSED /* Compile with -DUNUSED= if cc doesn't support this. */
#if BUILT_WITH_270
#define UNUSED __attribute__ ((unused))