[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setsockopt on mingw
From: |
Bruno Haible |
Subject: |
Re: setsockopt on mingw |
Date: |
Sat, 26 Apr 2008 14:37:50 +0200 |
User-agent: |
KMail/1.5.4 |
Simon Josefsson wrote:
> +# if defined _WIN32 || defined __WIN32__
This is not the right preprocessor test for mingw: It may also evaluate to
true on Cygwin. But Cygwin has the right declaration of setsockopt and does
not need a fix. The right #if here is
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
or - since you are actually handling a problem in the include files, not
in the operating system -:
#if defined __MINGW32__
Bruno