summaryrefslogtreecommitdiff
path: root/test/editor.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-04-14 12:29:51 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-04-14 12:29:51 +0000
commit217f77c9ef015684b08f77b2d129155c76414f9e (patch)
tree50e3e4576a1dfd8e13fb4692f75536df4ed48126 /test/editor.cxx
parent8dda432b40163541d13f9f6cd520b5efbd82e0da (diff)
Eliminate compiler warnings on Solaris...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/editor.cxx')
-rw-r--r--test/editor.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/editor.cxx b/test/editor.cxx
index d27b95e70..9d9759779 100644
--- a/test/editor.cxx
+++ b/test/editor.cxx
@@ -150,13 +150,14 @@ const char *code_types[] = { // List of known C/C++ types...
// 'compare_keywords()' - Compare two keywords...
//
-int
-compare_keywords(const void *a,
- const void *b) {
- return (strcmp(*((const char **)a), *((const char **)b)));
+extern "C" {
+ 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.
//