From 15b15f49cd5c10e4e9ea92f03f876f29077c0b65 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 21 Jun 2005 00:28:25 +0000 Subject: [PATCH] Index: include/ChangeLog 2005-06-20 Geoffrey Keating * libiberty.h (strverscmp): Prototype. Index: libiberty/ChangeLog 2005-06-20 Geoffrey Keating * strverscmp.c: New. * Makefile.in (CFILES): Add strverscmp.c. (CONFIGURED_OFILES): Add strverscmp.o. (strverscmp.o): New rule. (stamp-functions): Add $(srcdir) to files in source directory. * configure.ac (funcs): Add strverscmp. (AC_CHECK_FUNCS): Add strverscmp. * configure: Regenerate. * functions.texi: Regenerate. --- include/ChangeLog | 4 ++++ include/libiberty.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/include/ChangeLog b/include/ChangeLog index fab3d9ca2..107913db6 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-06-20 Geoffrey Keating + + * libiberty.h (strverscmp): Prototype. + 2005-06-17 Jakub Jelinek * elf/external.h (GRP_ENTRY_SIZE): Define. diff --git a/include/libiberty.h b/include/libiberty.h index 4b0d532db..6fb5e19cc 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -540,6 +540,11 @@ extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3; extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0); #endif +#if defined(HAVE_DECL_STRVERSCMP) && !HAVE_DECL_STRVERSCMP +/* Compare version strings. */ +extern int strverscmp (const char *, const char *); +#endif + #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) /* Drastically simplified alloca configurator. If we're using GCC, -- 2.43.5