[Mono-bugs] [Bug 65708][Nor] Changed - libgdiplus does not compile as ANSI C
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 7 Jan 2005 08:02:48 -0500 (EST)
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 andersb@blacksun.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=65708
--- shadow/65708 2005-01-07 07:38:25.000000000 -0500
+++ shadow/65708.tmp.5594 2005-01-07 08:02:48.000000000 -0500
@@ -45,6 +45,34 @@
these problems have been fixed.
Setting the bug to NEEDINFO, waiting for confirmation
------- Additional Comments From andersb@blacksun.ca 2005-01-07 07:38 -------
unpatched 1.0.5 still failed, will try subversion...
+
+------- Additional Comments From andersb@blacksun.ca 2005-01-07 08:02 -------
+nope, it still requires gcc3 to compile:
+
+general.c: In function `gdip_get_display_dpi':
+general.c:158: parse error before `char'
+general.c:160: `val' undeclared (first use in this function)
+general.c:160: (Each undeclared identifier is reported only once
+general.c:160: for each function it appears in.)
+
+
+ if (dpis == 0) {
+ if (getenv ("GDIPLUS_NOX") != NULL) {
+ dpis = 72.0f;
+ } else {
+ display = XOpenDisplay (0);
+ char *val = XGetDefault(display, "Xft", "dpi");
+ XCloseDisplay (display);
+ if (val) {
+ dpis = atof(val);
+ } else {
+ dpis = 72.0f;
+ }
+ }
+ }
+
+Maybe just list GCC 3 as a compilation requirement ?
+(it's the default on the supported platforms anyway)