openbsd-ports/x11/kde4/libs/patches/patch-kjs_math_object_cpp
espie 4f4b6b7642 update `core' kde4 to 4.0.0.
Warning: thoroughly untested so far, most pieces probably do not work.
2008-01-21 21:47:56 +00:00

16 lines
383 B
Plaintext

$OpenBSD: patch-kjs_math_object_cpp,v 1.2 2008/01/21 21:47:56 espie Exp $
--- kjs/math_object.cpp.orig Sat Jan 5 00:59:52 2008
+++ kjs/math_object.cpp Sat Jan 19 15:44:04 2008
@@ -35,6 +35,11 @@ static inline int signbit(double x)
}
#endif
+static __inline int signbit(double x)
+{
+ return x < 0.0;
+}
+
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */