aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorJoakim Verona2013-07-02 22:46:17 +0200
committerJoakim Verona2013-07-02 22:46:17 +0200
commit3718127221fbbc31f8ebd027ab7c95403dbe9118 (patch)
treeef422898f3344c8f94f6ecf63eb583122bbf2bd8 /m4
parent1ce45b902c67b8a0dda8d71bd2812de29a9988a6 (diff)
parenta3b49114c186d84404226af75ae7905bd1cd018f (diff)
downloademacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.tar.gz
emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.zip
Merge branch 'trunk' into xwidget
Conflicts: src/window.c
Diffstat (limited to 'm4')
-rw-r--r--m4/extern-inline.m417
1 files changed, 7 insertions, 10 deletions
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index 94b46dde07d..c4c5e7f221b 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -8,15 +8,7 @@ dnl with or without modifications, as long as this notice is preserved.
8AC_DEFUN([gl_EXTERN_INLINE], 8AC_DEFUN([gl_EXTERN_INLINE],
9[ 9[
10 AH_VERBATIM([extern_inline], 10 AH_VERBATIM([extern_inline],
11[/* _GL_INLINE is a portable alternative to ISO C99 plain 'inline'. 11[/* Please see the Gnulib manual for how to use these macros.
12 _GL_EXTERN_INLINE is a portable alternative to 'extern inline'.
13 _GL_INLINE_HEADER_BEGIN contains useful stuff to put
14 in an include file, before uses of _GL_INLINE.
15 It suppresses GCC's bogus "no previous prototype for 'FOO'" diagnostic,
16 when FOO is an inline function in the header; see
17 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>.
18 _GL_INLINE_HEADER_END contains useful stuff to put
19 in the same include file, after uses of _GL_INLINE.
20 12
21 Suppress extern inline with HP-UX cc, as it appears to be broken; see 13 Suppress extern inline with HP-UX cc, as it appears to be broken; see
22 <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. 14 <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
@@ -39,7 +31,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
39 && !defined __APPLE__) 31 && !defined __APPLE__)
40# define _GL_INLINE inline 32# define _GL_INLINE inline
41# define _GL_EXTERN_INLINE extern inline 33# define _GL_EXTERN_INLINE extern inline
42#elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__ 34#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
35 && !defined __APPLE__)
43# if __GNUC_GNU_INLINE__ 36# if __GNUC_GNU_INLINE__
44 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 37 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
45# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) 38# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
@@ -59,6 +52,10 @@ AC_DEFUN([gl_EXTERN_INLINE],
59# define _GL_INLINE_HEADER_CONST_PRAGMA \ 52# define _GL_INLINE_HEADER_CONST_PRAGMA \
60 _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") 53 _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
61# endif 54# endif
55 /* Suppress GCC's bogus "no previous prototype for 'FOO'"
56 and "no previous declaration for 'FOO'" diagnostics,
57 when FOO is an inline function in the header; see
58 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. */
62# define _GL_INLINE_HEADER_BEGIN \ 59# define _GL_INLINE_HEADER_BEGIN \
63 _Pragma ("GCC diagnostic push") \ 60 _Pragma ("GCC diagnostic push") \
64 _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ 61 _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \