Mercurial > hg > octave-lojdl > gnulib-hg
comparison m4/extern-inline.m4 @ 17436:54c2b89ac5ec
extern-inline: port to gcc -std=c89
* m4/extern-inline.m4 (gl_EXTERN_INLINE):
Do not use __gnu_inline__ if pedantic and pre-C99.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 21 Jun 2013 12:33:40 -0700 |
parents | a0d0b52b7d06 |
children |
comparison
equal
deleted
inserted
replaced
17435:a0d0b52b7d06 | 17436:54c2b89ac5ec |
---|---|
29 && !defined __HP_cc \ | 29 && !defined __HP_cc \ |
30 && !(defined __SUNPRO_C && __STDC__))) \ | 30 && !(defined __SUNPRO_C && __STDC__))) \ |
31 && !defined __APPLE__) | 31 && !defined __APPLE__) |
32 # define _GL_INLINE inline | 32 # define _GL_INLINE inline |
33 # define _GL_EXTERN_INLINE extern inline | 33 # define _GL_EXTERN_INLINE extern inline |
34 #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__ | 34 #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ |
35 && !defined __APPLE__) | |
35 # if __GNUC_GNU_INLINE__ | 36 # if __GNUC_GNU_INLINE__ |
36 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ | 37 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ |
37 # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) | 38 # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) |
38 # else | 39 # else |
39 # define _GL_INLINE extern inline | 40 # define _GL_INLINE extern inline |