Re: [PATCH] win32: Avoid redefining ssize_t

Petr Kobalíček <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAB2Z3OdDfTs5qTF6AN_Nme6sRJ-wqMnR47wTE6CBVkubFb8iZQ@mail.gmail.com>
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 <[email protected]> wrote:
> On Wed, 28 Mar 2012 19:47:24 +0300, Kalev Lember <[email protected]> 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
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
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.