#12401: Get Pynac functions to work on FreeBSD
----------------------------+-----------------------------------------------
Reporter: kcrisman | Owner: pjeremy
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: FreeBSD | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Comment (by stephen):
Please use the updated patch instead. It should be possible to add this
patch without interfering with builds from other OS.
{{{
--- sage-5.0.beta12/sage/symbolic/pynac_cc.h-orig 2012-04-07
22:52:53.000000000 +0000
+++ sage-5.0.beta12/sage/symbolic/pynac_cc.h 2012-04-07
22:53:27.000000000 +0000
@@ -2,7 +2,7 @@
inline long double sage_logl(long double x)
{
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__FreeBSD__)
return log(x);
#else
return logl(x);
@@ -11,7 +11,7 @@
inline long double sage_sqrtl(long double x)
{
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__FreeBSD__)
return sqrt(x);
#else
return sqrtl(x);
@@ -20,7 +20,7 @@
inline long double sage_tgammal(long double x)
{
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__FreeBSD__)
return tgamma(x);
#else
return tgammal(x);
@@ -29,7 +29,7 @@
inline long double sage_lgammal(long double x)
{
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__FreeBSD__)
return lgamma(x);
#else
return lgammal(x);
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12401#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.