be5369a0cb
* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
41 lines
962 B
Diff
41 lines
962 B
Diff
--- a/src/radialMap/sincos.h 2018-05-06 06:10:38.000000000 +0200
|
|
+++ b/src/radialMap/sincos.h 2018-05-06 06:10:38.000000000 +0200
|
|
@@ -21,10 +21,10 @@
|
|
|
|
#ifndef SINCOS_H
|
|
#define SINCOS_H
|
|
-
|
|
+#define _GNU_SOURCE
|
|
#include <math.h>
|
|
|
|
-#if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
|
|
+#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
|
|
|
|
#include <qmath.h>
|
|
|
|
--- a/src/radialMap/sincos.h 2018-05-25 01:30:46.775385798 +0200
|
|
+++ b/src/radialMap/sincos.h 2018-05-25 01:30:46.775385798 +0200
|
|
@@ -23,23 +23,4 @@
|
|
#define SINCOS_H
|
|
#define _GNU_SOURCE
|
|
#include <math.h>
|
|
-
|
|
-#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
|
|
-
|
|
-#include <qmath.h>
|
|
-
|
|
-void
|
|
-sincos(double angleRadians, double *Sin, double *Cos);
|
|
-
|
|
-#ifdef SINCOS_H_IMPLEMENTATION
|
|
-void
|
|
-sincos(double angleRadians, double *Sin, double *Cos)
|
|
-{
|
|
- *Sin = qSin(angleRadians);
|
|
- *Cos = qCos(angleRadians);
|
|
-}
|
|
-#endif
|
|
-
|
|
-#endif
|
|
-
|
|
#endif
|