gphoto2.ds: fix a compiler warning for libjpeg includes
Austin English
austinenglish at bordeauxgroup.com
Fri Jun 12 17:44:50 CDT 2009
--
-Austin
-------------- next part --------------
diff --git a/dlls/gphoto2.ds/gphoto2_i.h b/dlls/gphoto2.ds/gphoto2_i.h
index 2af61f4..ea22db9 100644
--- a/dlls/gphoto2.ds/gphoto2_i.h
+++ b/dlls/gphoto2.ds/gphoto2_i.h
-44,7 +44,13 @@
# define UINT8 JPEG_UINT8
# define UINT16 JPEG_UINT16
# undef FAR
+/* Really dirty hack, but libjpeg is unmaintained, so can't this fix on their end */
+#undef HAVE_STDLIB_H
# include <jpeglib.h>
+/* Most packaged versions remove the HAVE_STDLIB_H definition, so work around that */
+#ifndef HAVE_STDLIB_H
+#define HAVE_STDLIB_H
+#endif
# undef UINT16
#endif
More information about the wine-patches
mailing list