id3lib/id3lib.patch

Sat, 01 Sep 2012 12:17:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 01 Sep 2012 12:17:10 +0200
changeset 653
9d74c60eb90e
permissions
-rw-r--r--

Back out attempt to repair gets(3) redefinition and correct rather by
avoiding detection of gets(3) as a method with no macro, otherwise
leading to definition of HAVE_RAW_DECL_GETS and redefition of gets(3)
in lib/stdio.h(.in) caused by 'a split double-inclusion guard' and
a seemingly multiple '#include_next <stdio.h>' reference. Quatch.

     1 Index: include/id3/id3lib_strings.h
     2 --- include/id3/id3lib_strings.h.orig	2012-08-29 11:12:19.139220051 +0200
     3 +++ include/id3/id3lib_strings.h	2012-08-29 11:10:08.246368381 +0200
     4 @@ -30,6 +30,7 @@
     5  #define _ID3LIB_STRINGS_H_
     7  #include <string>
     8 +#include <cstring>
    10  #if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000))
    11  namespace std
    12 Index: include/id3/writers.h
    13 --- include/id3/writers.h.orig	2012-08-29 11:11:54.826330076 +0200
    14 +++ include/id3/writers.h	2012-08-29 11:12:07.554666839 +0200
    15 @@ -31,6 +31,7 @@
    16  #include "id3/writer.h"
    17  #include "id3/id3lib_streams.h"
    18  //#include <string.h>
    19 +#include <cstring>
    21  class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer
    22  {

mercurial