summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/syntaxhighlight.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/syntaxhighlight.cxx')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 76c8dfa862d3..3fb5bc057094 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -246,11 +246,14 @@ static const char* strListSqlKeyWords[] = {
};
-extern "C" int compare_strings( const void *arg1, const void *arg2 )
+extern "C" {
+
+static int compare_strings( const void *arg1, const void *arg2 )
{
return strcmp( static_cast<char const *>(arg1), *static_cast<char * const *>(arg2) );
}
+}
namespace
{