mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
Add ARRAY_SIZE macro from egcs version
This commit is contained in:
parent
260c1f9039
commit
9c136d7ea6
@ -1,3 +1,7 @@
|
|||||||
|
2000-08-24 Greg McGary <greg@mcgary.org>
|
||||||
|
|
||||||
|
* libiberty.h (ARRAY_SIZE): New macro.
|
||||||
|
|
||||||
2000-08-08 Jason Eckhardt <jle@cygnus.com>
|
2000-08-08 Jason Eckhardt <jle@cygnus.com>
|
||||||
|
|
||||||
* opcode/i860.h: Small formatting adjustments.
|
* opcode/i860.h: Small formatting adjustments.
|
||||||
|
@ -200,6 +200,8 @@ extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2;
|
|||||||
extern int vasprintf PARAMS ((char **, const char *, va_list))
|
extern int vasprintf PARAMS ((char **, const char *, va_list))
|
||||||
ATTRIBUTE_PRINTF(2,0);
|
ATTRIBUTE_PRINTF(2,0);
|
||||||
|
|
||||||
|
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user