summaryrefslogtreecommitdiffstats
path: root/src/isnormal.h
diff options
context:
space:
mode:
authorMarkus Schwarzenberg <schwarzenberg@users.sourceforge.net>2007-03-01 14:55:54 +0000
committerschwarzenberg <schwarzenberg@users.sourceforge.net>2007-03-01 14:55:54 +0000
commita1f4da7cf5d62d179039a121b97365bbd705fb37 (patch)
treedfaca4bbbb51574ee41b934e771bcda1c1cb1aa3 /src/isnormal.h
parentcommited Solaris 2.8 / gcc-3.2.3 fixes (diff)
downloadinkscape-a1f4da7cf5d62d179039a121b97365bbd705fb37.tar.gz
inkscape-a1f4da7cf5d62d179039a121b97365bbd705fb37.zip
(hopefully) fixed build on linux, added missing isnormal.h
(bzr r2486)
Diffstat (limited to 'src/isnormal.h')
-rw-r--r--src/isnormal.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/isnormal.h b/src/isnormal.h
new file mode 100644
index 000000000..6587331c3
--- /dev/null
+++ b/src/isnormal.h
@@ -0,0 +1,19 @@
+#ifndef __ISNORMAL_H__
+#define __ISNORMAL_H__
+
+/*
+ * Fix for missing std::isnormal with SOLARIS8/GCC3.2
+ */
+
+#if defined (SOLARIS_2_8) && __GNUC__ == 3 && __GNUC_MINOR__ == 2
+
+ #include <ieeefp.h>
+ #define isnormal(x) (fpclass(x) >= FP_NZERO)
+
+#else
+
+ using std::isnormal;
+
+#endif
+
+#endif /* __ISNORMAL_H__ */