986c0a7d5e
```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 ```
21 lines
502 B
Diff
21 lines
502 B
Diff
--- a/include/id3/id3lib_strings.h
|
|
+++ b/include/id3/id3lib_strings.h
|
|
@@ -30,6 +30,7 @@
|
|
#define _ID3LIB_STRINGS_H_
|
|
|
|
#include <string>
|
|
+#include <cstring>
|
|
|
|
#if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000))
|
|
namespace std
|
|
--- a/include/id3/writers.h
|
|
+++ b/include/id3/writers.h
|
|
@@ -30,7 +30,7 @@
|
|
|
|
#include "id3/writer.h"
|
|
#include "id3/id3lib_streams.h"
|
|
-//#include <string.h>
|
|
+#include <cstring>
|
|
|
|
class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer
|
|
{
|