aboutsummaryrefslogtreecommitdiffstats
path: root/community/octave/abs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/octave/abs.patch')
-rw-r--r--community/octave/abs.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/octave/abs.patch b/community/octave/abs.patch
new file mode 100644
index 0000000000..4dab61fd9b
--- /dev/null
+++ b/community/octave/abs.patch
@@ -0,0 +1,19 @@
+add inline functions needed for alpine
+
+--- octave-4.2.0/libinterp/corefcn/pr-output.cc.orig
++++ octave-4.2.0/libinterp/corefcn/pr-output.cc
+@@ -3152,6 +3152,14 @@
+ PRINT_INT_SCALAR_INTERNAL (int64_t)
+ PRINT_INT_SCALAR_INTERNAL (uint64_t)
+
++inline unsigned int abs (unsigned int x) { return x; }
++inline long unsigned int abs (long unsigned int x) { return x; }
++inline long long unsigned int abs (long long unsigned int x) { return x; }
++inline short unsigned int abs (short unsigned int x) { return x; }
++inline unsigned char abs (unsigned char x) { return x; }
++inline signed char abs (signed char x) { return abs((int)x); }
++inline short int abs (short int x) { return abs((int)x); }
++
+ template <typename T>
+ /* static */ inline void
+ octave_print_internal_template (std::ostream& os, const intNDArray<T>& nda,