[Olsr-dev] json & defines

Hans-Christoph Steiner (spam-protected)
Sat Jul 28 17:25:38 CEST 2012


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

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





More information about the Olsr-dev mailing list