[Olsr-dev] json & defines

Hans-Christoph Steiner (spam-protected)
Tue Jul 31 16:21:33 CEST 2012


On Jul 28, 2012, at 2:13 PM, Ferry Huberts wrote:

> 
> 
> 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.


If its an issue, I can maintain my plugin in a separate git repo.

.hc




>> 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