[GRASS5] values.h changed to limits.h

Hi all,

I have search the source code and changed all
#include <values.h>

to

#include <limits.h>

and some MAXDOUBLE to DBL_MAX etc.
These files were affected:
./src/mapdev/v.in.arc/GenToDig.c
./src/mapdev/v.rmdup/cmd/rmdup.c
./src/raster/r.in.dem/trans_ll2u.c
./src/raster/wildfire/src/r.spread/pick_ignite.c
./src/raster/wildfire/src/r.spread/pick_dist.c
./src/raster/wildfire/src/r.spread/prob_invsqr.c
./src.contrib/NPS/d.distance/nearest_node.c
./src.garden/grass.postgresql/v.in.arc.pg/GenToDig.c

I hope the values.h story is fixed now.

If these changes are *not* o.k. for some platforms, we would
have to change that again to:

#include "config.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_VALUES_H
#include <values.h>
#endif

Regards

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

<limits.h> is a standard C header *and* every conforming system must
provide it. It only has to have system macros for character and integer
types. <float.h> provides ranges for floating point types. Both are
ISO C. So, if there's an issue it's with any system that still doesn't
support an 11 year old standard :wink:

--
Eric G. Miller <egm2@jps.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'