mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add lcalc.
* gnu/packages/sagemath.scm (lcalc): New variable. * gnu/packages/patches/lcalc-default-parameters-1.patch, gnu/packages/patches/lcalc-default-parameters-2.patch, gnu/packages/patches/lcalc-lcommon-h.patch, gnu/packages/patches/lcalc-using-namespace-std.patch: New files. * gnu/local.mk (dist_patch_DATA): Register patches.
This commit is contained in:
parent
88f913e8ad
commit
fedb9571eb
6 changed files with 209 additions and 0 deletions
13
gnu/packages/patches/lcalc-lcommon-h.patch
Normal file
13
gnu/packages/patches/lcalc-lcommon-h.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Patch taken from the Sage packaging system.
|
||||
|
||||
--- src/include/Lcommon.h 2010-01-31 15:16:45.000000000 +0000
|
||||
+++ src/include/Lcommon.h 2011-03-08 21:19:11.849443238 +0000
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifdef USE_MPFR
|
||||
inline double lcalc_to_double(const double& x) { return x; }
|
||||
#endif
|
||||
-//inline double lcalc_to_double(const long double& x) { return x; }
|
||||
+inline double lcalc_to_double(const long double& x) { return x; }
|
||||
inline double lcalc_to_double(const int& x) { return x; }
|
||||
inline double lcalc_to_double(const long long& x) { return x; }
|
||||
inline double lcalc_to_double(const short& x) { return x; }
|
Loading…
Add table
Add a link
Reference in a new issue