[Mono-bugs] [Bug 60752][Maj] New - jpegcodec.c fails to compile because of redifinition of HAVE_STDLIB_H
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 25 Jun 2004 11:49:53 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by recht@netbsd.org.
http://bugzilla.ximian.com/show_bug.cgi?id=60752
--- shadow/60752 2004-06-25 11:49:53.000000000 -0400
+++ shadow/60752.tmp.10191 2004-06-25 11:49:53.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 60752
+Product: Mono: Class Libraries
+Version: unspecified
+OS: other
+OS Details: NetBSD 2.0_BETA i386
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: recht@netbsd.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: jpegcodec.c fails to compile because of redifinition of HAVE_STDLIB_H
+
+Steps to reproduce the problem:
+1. compile jpegcodec.c
+
+Actual Results:
+fails
+
+Expected Results:
+works
+
+
+How often does this happen?
+everytime
+
+
+Additional Information:
+After config.h gets included (which defines HAVE_STDLIB_H)jpegcodec.c
+includes jpeglib.h. jpeglib.h includes jconfig.h which also defines
+HAVE_STDLIB_H. This breaks the compile.
+This is with jpegsrc.v6b and libgdiplus 0.9.
+A work-around is to #undef HAVE_STDLIB_H before including jpeglib.h -- this
+is what the attached patch does.