Permalink
Browse files

2007-06-21 Sebastien Pouliot <sebastien@ximian.com>

	* testbits.c, testgdi.c: Fix #81845 to allow using with C++ compilers 
	and -Werror. Patch by Yves Bastide.


svn path=/trunk/libgdiplus/; revision=80462
  • Loading branch information...
1 parent 98ffc90 commit 483b339e87e88627794d15911329832b6972df95 Sebastien Pouliot committed Jun 21, 2007
Showing with 8 additions and 2 deletions.
  1. +5 −0 tests/ChangeLog
  2. +2 −2 tests/testbits.c
  3. +1 −0 tests/testgdi.c
View
@@ -1,3 +1,8 @@
+2007-06-21 Sebastien Pouliot <sebastien@ximian.com>
+
+ * testbits.c, testgdi.c: Fix #81845 to allow using with C++ compilers
+ and -Werror. Patch by Yves Bastide.
+
2007-06-21 Sebastien Pouliot <sebastien@ximian.com>
* testbits.cs: Fix Rgb|Argb definitions. Patch by Yves Bastide.
View
@@ -54,7 +54,7 @@ main (int argc, char **argv)
lptr = (unsigned long *) d.Scan0 + j * d.Stride;
printf ("%d: ", j);
for (i = 0; i < 5; i++) {
- printf ("%08x ", *lptr++);
+ printf ("%08lx ", *lptr++);
}
printf ("\n");
}
@@ -79,7 +79,7 @@ main (int argc, char **argv)
for (j = 0; j < 5; j++) {
printf ("%d: ", j);
for (i = 0; i < 5; i++) {
- printf ("%08x ", *lptr++);
+ printf ("%08lx ", *lptr++);
}
printf ("\n");
}
View
@@ -18,6 +18,7 @@
#include "GdiPlusFlat.h"
#include <X11/Xlib.h>
#include <cairo.h>
+#include <cairo-xlib.h>
typedef struct win {
Display *dpy;

0 comments on commit 483b339

Please sign in to comment.