Opened 18 years ago

Last modified 17 years ago

#726 closed defect (fixed)

values.h does not exist on MacOS X

Reported by: shadow@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:


HEAD won't compile on OS X without this:
--- alg/thinplatespline.cpp     26 Dec 2004 16:12:21 -0000      1.2
+++ alg/thinplatespline.cpp     28 Dec 2004 02:05:04 -0000
@@ -41,7 +41,7 @@
 #include "thinplatespline.h"
-#ifdef WIN32
+#if defined(WIN32) || (defined(__APPLE__) && defined(__MACH__))
 #  include <float.h>
 #  include <values.h>

Change History (1)

comment:1 by warmerdam, 17 years ago


I have committed a change to the configuration stuff and thinplatespline.c
to check for existance of float.h and values.h.  Now things seem to build ok
on my macos x system and my fix is hopefully less fragile than my earlier
win32/nonwin32 approach.

Note: See TracTickets for help on using tickets.