[GRASS-dev] Re: testing native winGRASS
Wolf Bergenheim
wolf+grass at bergenheim.net
Tue Mar 20 06:29:13 EDT 2007
On 20.03.2007 11:23, Paul Kelly wrote:
Looks good.
> On Tue, 20 Mar 2007, Moritz Lennert wrote:
>
>> 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 ?
>
> Suggested:
> Index: gis.h
> ===================================================================
> RCS file: /home/grass/grassrepository/grass6/include/gis.h,v
> retrieving revision 1.42
> diff -u -r1.42 gis.h
> --- gis.h 6 Mar 2007 01:34:47 -0000 1.42
> +++ gis.h 20 Mar 2007 09:22:55 -0000
> @@ -145,8 +145,10 @@
> #define GRASS_DIRSEP '/'
> #ifdef __MINGW32__
> # define HOST_DIRSEP '\\'
> +# define G_DEV_NULL 'NUL:'
> #else
> # define HOST_DIRSEP '/'
> +# define G_DEV_NULL '/dev/null'
> #endif
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
--
<:3 )---- Wolf Bergenheim ----( 8:>
More information about the grass-dev
mailing list