[cairo] [PATCH] win32: Avoid redefining ssize_t

Petr Kobalíček kobalicek.petr at gmail.com
Thu Mar 29 14:47:15 PDT 2012


Hello,

I found that I'm using another alternative which looks like:

#if defined(__MINGW32__) || defined(__MINGW64__)
# include <sys/types.h>
#endif // __MINGW32__ || __MINGW64__

Don't know which is better.

Best regards
Petr

On Thu, Mar 29, 2012 at 11:14 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> On Wed, 28 Mar 2012 19:47:24 +0300, Kalev Lember <kalevlember at gmail.com> wrote:
>> ... if it's already defined by system headers. mingw-w64 includes a
>> ssize_t definition, so we'll have to make sure not to redefine it in
>> that case.
>
> I just hesistated in case any naysayers stepped forward and
> explained why this might wrong and how best to do it... Lacking said
> objections, I've applied and pushed the patch.
>
> Thanks,
> -Chris
>
> --
> Chris Wilson, Intel Open Source Technology Centre
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list