From 2082d7e1978952138155be7dce29f20004bd71a5 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 21 Sep 2013 16:41:23 +0000 Subject: Fixes STR# 2973: collection of Sun compiler fixes. Applied str_2973_r9979_sun-fix-warnings-7.patch (with small mods) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_read_image.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fl_read_image.cxx') diff --git a/src/fl_read_image.cxx b/src/fl_read_image.cxx index a1049294c..2df98db70 100644 --- a/src/fl_read_image.cxx +++ b/src/fl_read_image.cxx @@ -70,8 +70,10 @@ fl_subimage_offsets(int a, int aw, int b, int bw, int &obw) // this handler will catch and ignore exceptions during XGetImage // to avoid an application crash -static int xgetimageerrhandler(Display *display, XErrorEvent *error) { - return 0; +extern "C" { + static int xgetimageerrhandler(Display *display, XErrorEvent *error) { + return 0; + } } // -- cgit v1.2.3