libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Patches for Windows version of libmicrohttpd


From: Carlos Henrique Júnior
Subject: Re: [libmicrohttpd] Patches for Windows version of libmicrohttpd
Date: Thu, 19 Aug 2010 16:10:51 -0300

in microhttpd.h

#define SHUTDOWN shutdown
#ifdef WINDOWS
#undef SHUTDOWN
#include <plibc.h>
#endif

Carlos Júnior <address@hidden>
www.milk-it.net
+55 31 8763-5606
+55 31 3227-1009


On Thu, Aug 19, 2010 at 7:48 AM, Gerrit Telkamp <address@hidden> wrote:
>
>>> Furthermore, an older version of plibc.h was in the include directory.
>>> This gives some problems if you are using a newer version of the PlibC
>>> library. So I propose to exclude src/include/plibc.h from the SVN
>>
>> The problem is that UNIX users won't have PlibC installed on their system, 
>> but
>> we need the header to
>>
>> #define SHUTDOWN shutdown
>>
>> and the like (otherwise the code won't compile).  That's why it is shipped
>> with MHD right now, and while I think we should keep it up-to-date.  Nils
>> should worry about backwards-compatibility.  Maybe one way to do this would 
>> be
>> to split it into a plibc_unix.h and a plibc_w32.h -- and then we might only
>> ship plibc_unix.h and avoid most compatibility issues in the future.
>>
>> Nils, what do you think of this idea?
>>
>> In any case, I don't think removing plibc.h is an option.
>
> Ok, but alternatively the header could be imported using #ifdef in daemon.c:
>
> #ifdef WINDOWS
> #include <plibc.h>
> #endif
>
> ?
>>
>> Well, your change simply takes it out on W32 always; I think we should do at
>> least something like
>> #ifdef IPV6_V6ONLY
>> ...
>> #endif
>> (instead of using "0").
>
> Yes, this would be better.
>
> Best regards
>
> Gerrit.
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]