fixed compile warnings in gcc2 (for Haiku)
This commit is contained in:
parent
77dfc0b6f3
commit
c05cee4e3d
1 changed files with 6 additions and 2 deletions
8
qe.h
8
qe.h
|
|
@ -51,13 +51,17 @@
|
|||
/* make sure that the keyword is not disabled by glibc (TINYC case) */
|
||||
#undef __attribute__
|
||||
#define __attr_printf(a, b) __attribute__((format(printf, a, b)))
|
||||
#define __attr_nonnull(l) __attribute__((nonnull l))
|
||||
#define __unused__ __attribute__((unused))
|
||||
#else
|
||||
#ifndef __attribute__
|
||||
#define __attribute__(l)
|
||||
#endif
|
||||
#define __attr_printf(a, b)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ > 2
|
||||
#define __attr_nonnull(l) __attribute__((nonnull l))
|
||||
#define __unused__ __attribute__((unused))
|
||||
#else
|
||||
#define __attr_nonnull(l)
|
||||
#define __unused__
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue