diff options
author | Eric Blake <ebb9@byu.net> | 2008-08-19 09:23:40 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-08-19 10:48:46 -0600 |
commit | b6d87f536521a59758453d8dbd071e7cd6efc39d (patch) | |
tree | 72dba8ff6e52cc670bee54e77bbe6700769261b0 /lib/string.in.h | |
parent | 63dfe7d84d88032b190b9d22d545933a7aceb2a8 (diff) | |
download | gnulib-b6d87f536521a59758453d8dbd071e7cd6efc39d.tar.gz |
strverscmp: migrate from "strverscmp.h" to <string.h>
* modules/string (Makefile.am): Add new hooks.
* modules/strverscmp (Files): Remove strverscmp.h.
(Depends-on): Add string.
(configure.ac): Add indicator.
(Include): Mention new header.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
defaults.
* m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
results.
* lib/strverscmp.h: Delete.
* lib/string.in.h (strverscmp): Provide declaration, when needed.
* tests/test-strverscmp.c (includes): Adjust client.
* lib/check-version.c (includes): Likewise.
* NEWS: Document the change.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/string.in.h')
-rw-r--r-- | lib/string.in.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/string.in.h b/lib/string.in.h index 49ea1d8317..e62b8dd2e8 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -576,6 +576,18 @@ extern char *strsignal (int __sig); strsignal (a)) #endif +#if @GNULIB_STRVERSCMP@ +# if !@HAVE_STRVERSCMP@ +extern int strverscmp (const char *, const char *); +# endif +#elif defined GNULIB_POSIXCHECK +# undef strverscmp +# define strverscmp(a, b) \ + (GL_LINK_WARNING ("strverscmp is unportable - " \ + "use gnulib module strverscmp for portability"), \ + strverscmp (a, b)) +#endif + #ifdef __cplusplus } |