summaryrefslogtreecommitdiff
path: root/lib/argp-xinl.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-12-18 17:59:33 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-12-18 18:00:09 -0800
commit37e3ad9a8077636cea173c1494c744e383962255 (patch)
tree9b1fdee3a1425ba3ebe3e69f575e5756508f6ef5 /lib/argp-xinl.c
parentb923b823d5e16f18ac4ae1b0a8f5c8a036231f8f (diff)
downloadgnulib-37e3ad9a8077636cea173c1494c744e383962255.tar.gz
argp: better 'inline'
Use extern-inline module to declare extern inline functions. This avoids some bogus warning diagnostics. Problem discovered when modifying GNU tar to use the manywarnings module. * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]: * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]: Define based on extern-inline. * modules/argp (Depends-on): Add extern-inline.
Diffstat (limited to 'lib/argp-xinl.c')
-rw-r--r--lib/argp-xinl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/argp-xinl.c b/lib/argp-xinl.c
index 7d45fcb62a..731833d3a4 100644
--- a/lib/argp-xinl.c
+++ b/lib/argp-xinl.c
@@ -27,7 +27,11 @@
#ifndef __USE_EXTERN_INLINES
# define __USE_EXTERN_INLINES 1
#endif
-#define ARGP_EI
+#ifdef _LIBC
+# define ARGP_EI
+#else
+# define ARGP_EI _GL_EXTERN_INLINE
+#endif
#undef __OPTIMIZE__
#define __OPTIMIZE__ 1
#include "argp.h"