aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strverscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/strverscmp.c')
-rw-r--r--libiberty/strverscmp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libiberty/strverscmp.c b/libiberty/strverscmp.c
index 04e1e4ae99e..b1ec5eb5502 100644
--- a/libiberty/strverscmp.c
+++ b/libiberty/strverscmp.c
@@ -86,6 +86,13 @@ because filenames frequently hold indices/version numbers.
returning less than, equal to or greater than zero if S1 is less than,
equal to or greater than S2 (for more info, see the Glibc texinfo doc). */
+#ifdef __cplusplus
+extern "C"
+#else
+extern
+#endif
+int strverscmp (const char *, const char *);
+
int
strverscmp (const char *s1, const char *s2)
{