[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Mark `extern inline' functions as `gnu_inline' in <idvec.h>.
From: |
Ludovic Courtès |
Subject: |
[PATCH] Mark `extern inline' functions as `gnu_inline' in <idvec.h>. |
Date: |
Wed, 14 Mar 2012 23:13:51 +0100 |
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 <miles@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Mark `extern inline' functions as `gnu_inline' in <idvec.h>.,
Ludovic Courtès <=