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:
parent
a7839b0fdc
commit
bb22d1e732
4
gnu/dist/toolchain/gcc/f/proj.h
vendored
4
gnu/dist/toolchain/gcc/f/proj.h
vendored
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user