[GRASS-dev] Re: testing native winGRASS

Moritz Lennert mlennert at club.worldonline.be
Tue Mar 20 05:04:02 EDT 2007


Glynn Clements wrote:
> Wolf Bergenheim wrote:
> 
>>> Any reasons why it can't be a macro instead?
>> Yeah a macro would probably be much better
> 
> Agreed.
> 
>> #ifdef __MINGW32__
>> #define G_DEV_NULL "NUL:"
>> #else
>> #define G_DEV_NULL "/dev/null"
>> #endif
>>
>> should do the trick, and then replace all "/dev/null" strings with
>> GRASS_DEV_NULL
> 
> Or even G_DEV_NULL ;)
> 

Ok, so where should this go ? include/gis.h ?

Moritz




More information about the grass-dev mailing list