pkgsrc - initial commit
[pkgsrc.git] / audio / id3lib / patches / patch-aa
1 $NetBSD: patch-aa,v 1.4 2006/09/23 13:26:24 wiz Exp $
2
3 --- include/id3/id3lib_strings.h.orig   2003-03-02 00:23:00.000000000 +0000
4 +++ include/id3/id3lib_strings.h
5 @@ -100,10 +100,10 @@ namespace std
6  
7        static char_type
8        to_char_type(const int_type& __c)
9 -      { return char_type(); }
10 +      { return char_type(__c); }
11  
12        static int_type
13 -      to_int_type(const char_type& __c) { return int_type(); }
14 +      to_int_type(const char_type& __c) { return int_type(__c); }
15  
16        static bool
17        eq_int_type(const int_type& __c1, const int_type& __c2)
18 @@ -117,7 +117,8 @@ namespace std
19        { return eq_int_type(__c, eof()) ? int_type(0) : __c; }
20      };
21  
22 -#ifndef _GLIBCPP_USE_WCHAR_T
23 +/* gcc-3.4 defines _GLIBCXX_USE_WCHAR_T instead of _GLIBCPP_USE_WCHAR_T */
24 +#if !defined(_GLIBCPP_USE_WCHAR_T) && !defined(_GLIBCXX_USE_WCHAR_T)
25  #if (defined(ID3_NEED_WCHAR_TEMPLATE))
26     template<>
27       struct char_traits<wchar_t>