summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-14 12:04:36 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-14 12:04:36 +0300
commitec16bfc22a6d5ee6084a1762ed5cb77886a2fb40 (patch)
tree7b77c1a262563c91138a4de8857a43e07db2ed56 /comphelper
parent4badcfda55996891d99b1f0a8cc47028acd1c0c1 (diff)
Probably best to use extern "C" here
Change-Id: I9fac782e29566d3652f9e903ed22abdb6531f883
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index c1f4ca5f19ac..1995cd413d36 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -224,7 +224,7 @@ static const char* strListSqlKeyWords[] = {
};
-static int compare_strings( const void *arg1, const void *arg2 )
+extern "C" int compare_strings( const void *arg1, const void *arg2 )
{
return strcmp( (char *)arg1, *(char **)arg2 );
}