[Olsr-dev] json & defines

Ferry Huberts (spam-protected)
Sat Jul 28 20:12:05 CEST 2012



On 28-07-12 17:25, Hans-Christoph Steiner wrote:
>
> - '_WIN32' is the only macro guaranteed to be set by all Windows compilers.  'WIN32' is not defined by all Windows compilers.
>
> - 'linux' is not the proper macro for detecting the Linux kernel, indeed it is manually set in make/Makefile.linux and make/Makefile.android.  '__linux__' is the one automatically included by all the compilers and is the right one to use.
>
> If I had internet access now, I'd provide references, but they are not hard to find if you are interested.
>
> .hc
>


I'll ask again: Please conform to that.

> On Jul 24, 2012, at 3:09 AM, Ferry Huberts wrote:
>
>> Hans,
>>
>> Why are you using __linux__ and _WIN32 defines in jsoninfo?
>> Normal usage in olsrd is plain linux and WIN32.
>> Please conform to that.
>>
>>
>> --
>> Ferry Huberts
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list