[cairo] Master still does not cross-compile with mingw
Maarten Bosmans
mkbosmans at gmail.com
Fri Jun 24 06:47:03 PDT 2011
Can the patch from https://bugs.freedesktop.org/show_bug.cgi?id=30277
be pushed to master?
Or alternatively, the slightly different patch below. (I think it is a
bit better)
Maarten
--- a/src/cairo-compiler-private.h
+++ b/src/cairo-compiler-private.h
@@ -219,7 +219,10 @@
#ifdef _MSC_VER
#undef inline
#define inline __inline
+#endif
+#ifndef HAVE_FFS
+# if defined(_MSC_VER)
/* Add a definition of ffs */
#include <intrin.h>
#pragma intrinsic(_BitScanForward)
@@ -233,7 +236,11 @@ ffs (int x)
return 0;
}
-
+# elif defined(__GNUC__)
+# define ffs __builtin_ffs
+# else
+# warning No definition of ffs available
+# endif
#endif
#if defined(_MSC_VER) && defined(_M_IX86)
More information about the cairo
mailing list