Commits

Anonymous committed 9099b11

Created pull request for issue #45 (solution from paul_koning). Successfully tested build on OS X 10.9.3 together with pull request #7.

Comments (0)

Files changed (1)

include/Inventor/C/base/math-undefs.h

   This block was originally part of Inventor/C/basic.h, but since the
   #undef's were mangled by the config.status process, it did not really
   work as intended.  20070518 larsa
-*/
+ 
+ cmath from "The LLVM Compiler Infrastructure" uses float-versions of the
+ math functions below. Therefore don't undefine them when __clang__ is
+ defined.
+ 
+ */
+
+#ifndef __clang__
 
 #undef cosf
 #define cosf(x) NO_SINGLEPREC /* whatever that'll give us a compile error... */
 #undef atan2f
 #define atan2f(x) NO_SINGLEPREC
 
+#endif // !__clang__
+
+
 /* *********************************************************************** */
 
 #endif // !COIN_MATH_UNDEFS_H