summaryrefslogtreecommitdiff
path: root/src/glu/sgi/libnurbs/internals/mymath.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-08-13 16:52:18 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-08-13 16:52:18 +0000
commit978a2a0a43ccdb9090cf19b38347b1aa2d4c8f5e (patch)
tree01a12bc103fa3f8350cb3dc54fd5272ffd766ba7 /src/glu/sgi/libnurbs/internals/mymath.h
parent2e5a20ae21ab8c25cc3eb211e713a5712c3ee5cb (diff)
fixed Solaris compilation problems (Bug 441817)
Diffstat (limited to 'src/glu/sgi/libnurbs/internals/mymath.h')
-rw-r--r--src/glu/sgi/libnurbs/internals/mymath.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/glu/sgi/libnurbs/internals/mymath.h b/src/glu/sgi/libnurbs/internals/mymath.h
index 8aca9fc9f6..7013832115 100644
--- a/src/glu/sgi/libnurbs/internals/mymath.h
+++ b/src/glu/sgi/libnurbs/internals/mymath.h
@@ -35,8 +35,8 @@
/*
* mymath.h
*
- * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/mymath.h,v 1.1 2001/03/17 00:25:41 brianp Exp $
+ * $Date: 2001/08/13 16:52:18 $ $Revision: 1.2 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/mymath.h,v 1.2 2001/08/13 16:52:18 brianp Exp $
*/
#ifndef __glumymath_h_
@@ -61,4 +61,14 @@ extern "C" float floorf(float);
#include <math.h>
#endif
+#if !defined sqrtf
+# define sqrtf(x) ((float)sqrt(x))
+#endif
+#if !defined ceilf
+# define ceilf(x) ((float)ceil(x))
+#endif
+#if !defined floorf
+# define floorf(x) ((float)floor(x))
+#endif
+
#endif /* __glumymath_h_ */