summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
Diffstat (limited to 'fluid')
-rw-r--r--fluid/CodeEditor.cxx6
-rw-r--r--fluid/CodeEditor.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/fluid/CodeEditor.cxx b/fluid/CodeEditor.cxx
index bad97057c..78ece08de 100644
--- a/fluid/CodeEditor.cxx
+++ b/fluid/CodeEditor.cxx
@@ -126,8 +126,10 @@ void CodeEditor::textsize(Fl_Fontsize s) {
// 'compare_keywords()' - Compare two keywords...
-int CodeEditor::compare_keywords(const void *a, const void *b) {
- return (strcmp(*((const char **)a), *((const char **)b)));
+extern "C" {
+ static int compare_keywords(const void *a, const void *b) {
+ return strcmp(*((const char **)a), *((const char **)b));
+ }
}
// 'style_parse()' - Parse text and produce style data.
diff --git a/fluid/CodeEditor.h b/fluid/CodeEditor.h
index ce7120ef1..946c5d707 100644
--- a/fluid/CodeEditor.h
+++ b/fluid/CodeEditor.h
@@ -38,9 +38,6 @@ class CodeEditor : public Fl_Text_Editor {
static const char * const code_types[];
- // 'compare_keywords()' - Compare two keywords...
- static int compare_keywords(const void *a, const void *b);
-
// 'style_parse()' - Parse text and produce style data.
static void style_parse(const char *text, char *style, int length);