summaryrefslogtreecommitdiff
path: root/src/Fl_JPEG_Image.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 /src/Fl_JPEG_Image.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 'src/Fl_JPEG_Image.cxx')
-rw-r--r--src/Fl_JPEG_Image.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx
index aab9fd5b6..e4cc88d13 100644
--- a/src/Fl_JPEG_Image.cxx
+++ b/src/Fl_JPEG_Image.cxx
@@ -73,15 +73,17 @@ struct fl_jpeg_error_mgr {
//
#ifdef HAVE_LIBJPEG
-static void
-fl_jpeg_error_handler(j_common_ptr dinfo) { // I - Decompressor info
- longjmp(((fl_jpeg_error_mgr *)(dinfo->err))->errhand_, 1);
- return;
-}
+extern "C" {
+ static void
+ fl_jpeg_error_handler(j_common_ptr dinfo) { // I - Decompressor info
+ longjmp(((fl_jpeg_error_mgr *)(dinfo->err))->errhand_, 1);
+ return;
+ }
-static void
-fl_jpeg_output_handler(j_common_ptr dinfo) { // I - Decompressor info
- return;
+ static void
+ fl_jpeg_output_handler(j_common_ptr dinfo) { // I - Decompressor info
+ return;
+ }
}
#endif // HAVE_LIBJPEG