[Libwebsockets] [libwebsockets] Do not use the inline keyword in public headers (#83)

"Andy Green (林安廸)" andy at warmcat.com
Mon Mar 3 00:23:38 CET 2014


On 28/02/14 20:50, the mail apparently from "Andy Green (林安廸)" included:
> On 28/02/14 20:42, the mail apparently from Patrick Gansterer included:
>> When using libwebsockets in a plain C programm inline is not a known
>> keyword.
>
> It's in in C99 (15 years ago).
>
> It's Win32's problem if they're still stuck in 1998 and calling that
> "plain C".
>
> How about
>
> #ifdef WIN32 (or whatever)
> #define inline
> #endif

Added in the main header here, hopefully that lets Win[32|ce] work 
without forcing everything else to their lowest common denominator

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=ae1a8be61a88b76de3d78b3780f0b0d4543131db

-Andy

> -Andy
>
>> You can merge this Pull Request by running:
>>
>>    git pull https://github.com/paroga/libwebsockets inline
>>
>> Or you can view, comment on it, or merge it online at:
>>
>>    https://github.com/warmcat/libwebsockets/pull/83
>>
>> -- Commit Summary --
>>
>>    * Do not use the inline keyword in public headers
>>
>> -- File Changes --
>>
>>      M lib/libwebsockets.h (2)
>>
>> -- Patch Links --
>>
>> https://github.com/warmcat/libwebsockets/pull/83.patch
>> https://github.com/warmcat/libwebsockets/pull/83.diff
>>
>> ---
>> Reply to this email directly or view it on GitHub:
>> https://github.com/warmcat/libwebsockets/pull/83
>>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list