oleaut32: fix a compiler warning for libjpeg includes
Austin English
austinenglish at bordeauxgroup.com
Fri Jun 12 17:44:04 CDT 2009
--
-Austin
-------------- next part --------------
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index adaad97..462be7c 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
-52,7 +52,13 @@
#define UINT8 JPEG_UINT8
#define UINT16 JPEG_UINT16
#define boolean jpeg_boolean
+/* 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 UINT8
#undef UINT16
#undef boolean
More information about the wine-patches
mailing list