Re: build error on MinGW Windows 7 32-bit

LRN <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
-----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-----

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
0001-no-need-to-define-ssize_t-on.v2.mingw.patch (text/plain, 355 B)
--- 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.