diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-10 14:11:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-10 14:11:29 +0000 |
commit | acf6101af78f4306242b9fd2bc9fc56dce73b41d (patch) | |
tree | 1a7d608f59eab71d66c5d7e67da8287a1aaeeeb4 /testing/xournal/static-inline.patch | |
parent | a46c750b476e0d417c13f4efe1c461cae1cac51d (diff) | |
download | aports-acf6101af78f4306242b9fd2bc9fc56dce73b41d.tar.bz2 aports-acf6101af78f4306242b9fd2bc9fc56dce73b41d.tar.xz |
testing/xournal: build fix for armv7
Diffstat (limited to 'testing/xournal/static-inline.patch')
-rw-r--r-- | testing/xournal/static-inline.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/xournal/static-inline.patch b/testing/xournal/static-inline.patch new file mode 100644 index 0000000000..5a87495028 --- /dev/null +++ b/testing/xournal/static-inline.patch @@ -0,0 +1,56 @@ +diff --git a/src/xo-shapes.c b/src/xo-shapes.c +index 33840fd..4ed17da 100644 +--- a/src/xo-shapes.c ++++ b/src/xo-shapes.c +@@ -72,42 +72,42 @@ void calc_inertia(double *pt, int start, int end, struct Inertia *s) + + /* compute normalized quantities */ + +-inline double center_x(struct Inertia s) +-{ ++static inline double center_x(struct Inertia s) ++{ + return s.sx/s.mass; + } + +-inline double center_y(struct Inertia s) +-{ ++static inline double center_y(struct Inertia s) ++{ + return s.sy/s.mass; + } + +-inline double I_xx(struct Inertia s) ++static inline double I_xx(struct Inertia s) + { + if (s.mass <= 0.) return 0.; + return (s.sxx - s.sx*s.sx/s.mass)/s.mass; + } + +-inline double I_xy(struct Inertia s) ++static inline double I_xy(struct Inertia s) + { + if (s.mass <= 0.) return 0.; + return (s.sxy - s.sx*s.sy/s.mass)/s.mass; + } + +-inline double I_yy(struct Inertia s) ++static inline double I_yy(struct Inertia s) + { + if (s.mass <= 0.) return 0.; + return (s.syy - s.sy*s.sy/s.mass)/s.mass; + } + +-inline double I_rad(struct Inertia s) ++static inline double I_rad(struct Inertia s) + { + double ixx = I_xx(s), iyy = I_yy(s); + if (ixx+iyy <= 0.) return 0.; + return sqrt(ixx+iyy); + } + +-inline double I_det(struct Inertia s) ++static inline double I_det(struct Inertia s) + { + double ixx = I_xx(s), iyy = I_yy(s), ixy = I_xy(s); + if (s.mass <= 0.) return 0.; |