#include <stddef.h>
#include <stdint.h>
+#if __GNUC__
+# define CDECL__INLINE __inline
+#else
+# define CDECL__INLINE inline
+#endif
+
/* Compatibility typedefs */
#if HAVE__BOOL
typedef _Bool cdecl_bool;
size_t cdecl_explain(char *buf, size_t n, struct cdecl *decl);
size_t cdecl_declare(char *buf, size_t n, struct cdecl *decl);
-static inline int cdecl_spec_kind(const struct cdecl_declspec *spec)
+static CDECL__INLINE int cdecl_spec_kind(const struct cdecl_declspec *spec)
{
return spec->type & ~(CDECL_SPEC_TYPE-1u);
}
-static inline int cdecl_is_abstract(const struct cdecl_declarator *d)
+static CDECL__INLINE int cdecl_is_abstract(const struct cdecl_declarator *d)
{
while (d->child)
d = d->child;