This fixes compilation of user code in C99 or GNU99 mode.

* libshouldbeinlibc/idvec.h (IDVEC_EI)[__GNUC_PREREQ (4, 3)]: Add
  `__gnu_inline__' attribute.
---
 libshouldbeinlibc/idvec.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libshouldbeinlibc/idvec.h b/libshouldbeinlibc/idvec.h
index 3c70a5d..05e9cf4 100644
--- a/libshouldbeinlibc/idvec.h
+++ b/libshouldbeinlibc/idvec.h
@@ -1,6 +1,6 @@
 /* Routines for vectors of uids/gids
 
-   Copyright (C) 1995,96,97,99,2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,99,2001,2012 Free Software Foundation, Inc.
    Written by Miles Bader <mi...@gnu.org>
 
    This program is free software; you can redistribute it and/or
@@ -26,7 +26,11 @@
 #include <string.h>
 
 #ifndef IDVEC_EI
-#define IDVEC_EI extern inline
+# ifdef __GNUC_PREREQ (4, 3)
+#  define IDVEC_EI extern inline __attribute__ ((__gnu_inline__))
+# else
+#  define IDVEC_EI extern inline
+# endif
 #endif
 
 struct idvec
-- 
1.7.6


Reply via email to