[GRASS-dev] Re: testing native winGRASS

Glynn Clements glynn at gclements.plus.com
Mon Mar 19 22:27:48 EDT 2007


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

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list