diff options
author | Geoffrey Keating <geoffk@geoffk.org> | 2005-06-21 00:28:25 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@geoffk.org> | 2005-06-21 00:28:25 +0000 |
commit | 67f3cb056f76df8ae8afc2db99589273f4c468be (patch) | |
tree | 2f793c02e348af0897dab8c4154d3672d48ef4bb /include/libiberty.h | |
parent | 9c0a3ed4ce6c9b4434a5610d9fc8fabe57683611 (diff) | |
download | gdb-67f3cb056f76df8ae8afc2db99589273f4c468be.zip gdb-67f3cb056f76df8ae8afc2db99589273f4c468be.tar.gz gdb-67f3cb056f76df8ae8afc2db99589273f4c468be.tar.bz2 |
Index: include/ChangeLog
2005-06-20 Geoffrey Keating <geoffk@apple.com>
* libiberty.h (strverscmp): Prototype.
Index: libiberty/ChangeLog
2005-06-20 Geoffrey Keating <geoffk@apple.com>
* 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.
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 4b0d532..6fb5e19 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, |