summaryrefslogtreecommitdiff
path: root/gnu/egcs
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-11-25 20:35:53 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-11-25 20:35:53 +0000
commitc6d8b1ff9a35ef49799ae65d50ee06444322816f (patch)
tree4db075626b42b0a75f328c7b0021bc9fbe289bbd /gnu/egcs
parent8dec545c586449d9e5f4a74c285ae295727a6e6d (diff)
Protect against ARRAY_SIZE redefinition
Diffstat (limited to 'gnu/egcs')
-rw-r--r--gnu/egcs/gcc/f/proj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/f/proj.h b/gnu/egcs/gcc/f/proj.h
index 47fc2f94ab7..3bd84516900 100644
--- a/gnu/egcs/gcc/f/proj.h
+++ b/gnu/egcs/gcc/f/proj.h
@@ -66,7 +66,9 @@ 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