I have reported yesterday that updating to gdl-0.8.11-1 failed
on 10.3 with:

...
basic_fun.cpp:1731: error: `isfinite' undeclared (first use this function)
...

Without answer I looked to the problem and decided to patch
basic_fun.cpp to read:

...
#ifdef __APPLE__
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#else
#include <unistd.h>
#endif

// on OS X isfinite is not defined
#if defined(__APPLE__) && !defined(isfinite)
#define isfinite( x ) ( ( sizeof ( (x) ) == sizeof( float) ) ? \
                        __isfinitef ( (float)(x) ) : \
                        __isfinited  ( (double)(x) ) )
#endif

and it worked!

So apparently there is a missing patch for basic_fun.cpp.
I don't know how to do it properly and leave it to
someone who knows.

TIA

Dominique


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to