[GRASS5] Darwin r.fill.dir

Greetings all,

There is just 1 standard module that fails to compile now, r.fill.dir on Darwin. Amazing, my first build of beta 8 had 27 failed modules! : )

It appears to me a limitation of the math.h file installed with Darwin.

MAXDOUBLE is not defined, however there there is a MAXFLOAT defined. Would it be safe to assign the same vaule to MAXDOUBLE?

Additionally, MINFLOAT and MINDOUBLE have not been defined. Is there a value that I could assign them?

Thanks,

Jeshua Lacock
Cartographer/Owner
http://SierraMaps.com
http://3dTopoMaps.com
Telephone: (760) 935-4481

Hi Jeshua

Jeshua Lacock wrote:

It appears to me a limitation of the math.h file installed with
Darwin.

MAXDOUBLE is not defined, however there there is a MAXFLOAT defined.
Would it be safe to assign the same vaule to MAXDOUBLE?

Additionally, MINFLOAT and MINDOUBLE have not been defined. Is there
a value that I could assign them?

Since the math library is not part of the standard C library I would
suggest that these constants be changed to those in float.h which is
part of the standard library.

Namely, DBL_MAX, DBL_MIN, FLT_MAX, and FLT_MIN would probably be better
choices.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

On Mon, Jun 11, 2001 at 10:26:10AM +0700, Justin Hickey wrote:

Hi Jeshua

Jeshua Lacock wrote:
> It appears to me a limitation of the math.h file installed with
> Darwin.
>
> MAXDOUBLE is not defined, however there there is a MAXFLOAT defined.
> Would it be safe to assign the same vaule to MAXDOUBLE?
>
> Additionally, MINFLOAT and MINDOUBLE have not been defined. Is there
> a value that I could assign them?

Since the math library is not part of the standard C library I would

            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      I don't think you meant to say that (maybe "those constants
      are not a part of the ISO standard C math library" ?).
      

suggest that these constants be changed to those in float.h which is
part of the standard library.

Namely, DBL_MAX, DBL_MIN, FLT_MAX, and FLT_MIN would probably be better
choices.

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

Hi Eric

"Eric G. Miller" wrote:

On Mon, Jun 11, 2001 at 10:26:10AM +0700, Justin Hickey wrote:
> Since the math library is not part of the standard C library I
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            I don't think you meant to say that (maybe "those
            constants are not a part of the ISO standard C math
            library" ?).

Oops, you're right. Will you accept "It's Monday morning" as an excuse?
:slight_smile:

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!