diff options
Diffstat (limited to 'src/fl_read_image.cxx')
| -rw-r--r-- | src/fl_read_image.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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; + } } // |
