oleaut32: fix a compiler warning for libjpeg includes (try 2)
Austin English
austinenglish at gmail.com
Mon Jun 15 11:10:15 CDT 2009
On Mon, Jun 15, 2009 at 11:09 AM, Austin English<austinenglish at gmail.com> wrote:
> Without mangled index this time, and defining HAVE_STDLIB_H to 1.
>
> --
> -Austin
>
--
-Austin
-------------- next part --------------
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index adaad97..7367eb4 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 1
+#endif
#undef UINT8
#undef UINT16
#undef boolean
More information about the wine-patches
mailing list