openbsd-ports/x11/kde4/edu/patches/patch-kmplot_kmplot_parser_cpp
martynas 5266580b5b this patch was never right, because '#define tgamma gamma' would
define tgamma that'd compute natural logarithm of gamma function,
and not gamma function itself, therefore completely different values

e.g. parser 4! yields 3.178054 which is obviously wrong

though on vax this patch used to be right.  :-)

tested by, and ok sthen@
2008-07-08 20:42:24 +00:00

14 lines
439 B
Plaintext

$OpenBSD: patch-kmplot_kmplot_parser_cpp,v 1.4 2008/07/08 20:42:24 martynas Exp $
--- kmplot/kmplot/parser.cpp.orig Sat Jan 5 00:56:47 2008
+++ kmplot/kmplot/parser.cpp Tue Jan 22 01:12:39 2008
@@ -1035,7 +1038,9 @@ bool Parser::tryConstant()
CHECK_CONSTANT( "pi", M_PI );
CHECK_CONSTANT( PiSymbol, M_PI );
CHECK_CONSTANT( "e", M_E );
+#ifndef __OpenBSD__
CHECK_CONSTANT( InfinitySymbol, INFINITY );
+#endif
return false;
}