[cairo] build error on MinGW Windows 7 32-bit

LRN lrn1986 at gmail.com
Tue Oct 22 23:03:40 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23.10.2013 0:32, John Dill wrote:
> Trying to build cairo version 1.12.16.
>  
> In util/cairo-missing/cairo-missing.h, there is a section that says:
>  
> #ifndef _SSIZE_T_DEFINED
> typedef SSIZE_T ssize_t;
> #endif
>  
> It's conflicting with my MinGW _ssize_t defined in my /mingw/include folder.
>  
> Probably should be #ifdef instead of #ifndef.  The build phase is continuing on past that file now.

Here's the patch that i'm using.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSZugrAAoJEOs4Jb6SI2CwDgkH/28EkPVzevEmtW1HLaLRMkcL
s/ATAUdlM3zL4NRTCdwwsTiMuGAJ3j9Y4nP62ZKcwR1bNUwhGhrxrn86WcgiYPZi
sjOpRKDn2KhssETD9Q1OQeNMZEpih2d7NCSCxFFPvR5EEgVgUa/GghRNv+QMqp8B
PPQH6ozWc2a8odME73APrph8kbSnm6l51++bVHbBg/3gQFDt7QWTWJcn2DwX8tkj
j9ul2w+2PB1lVv8FxKhkScP4iVgLP2V/1BWl2eywpuzz5G9rMEgELcWFayDZvWGG
qGe2KHPt9ghDldI5bZw/lA66OR084ULKkD/eNAb4J44KafcyrOlW9lr1ujXJoJ4=
=7sHl
-----END PGP SIGNATURE-----
-------------- next part --------------
--- cairo-1.12.2/util/cairo-missing/cairo-missing.h.orig	2012-03-30 00:13:09 +0400
+++ cairo-1.12.2/util/cairo-missing/cairo-missing.h	2012-05-06 16:54:18 +0400
@@ -41,7 +41,7 @@
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 
-#ifndef _SSIZE_T_DEFINED
+#if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_)
 typedef SSIZE_T ssize_t;
 #endif
 #endif


More information about the cairo mailing list