| @@ -1,15 +1,15 @@ | | | @@ -1,15 +1,15 @@ |
1 | // -*- C++ -*- | | 1 | // -*- C++ -*- |
2 | // $Id: id3lib_strings.h,v 1.4 2006/09/23 13:26:24 wiz Exp $ | | 2 | // $Id: id3lib_strings.h,v 1.5 2009/09/19 17:14:21 tnn Exp $ |
3 | | | 3 | |
4 | // id3lib: a software library for creating and manipulating id3v1/v2 tags | | 4 | // id3lib: a software library for creating and manipulating id3v1/v2 tags |
5 | // Copyright 1999, 2000 Scott Thomas Haug | | 5 | // Copyright 1999, 2000 Scott Thomas Haug |
6 | // Copyright 2002 Thijmen Klok (thijmen@id3lib.org) | | 6 | // Copyright 2002 Thijmen Klok (thijmen@id3lib.org) |
7 | | | 7 | |
8 | // This library is free software; you can redistribute it and/or modify it | | 8 | // This library is free software; you can redistribute it and/or modify it |
9 | // under the terms of the GNU Library General Public License as published by | | 9 | // under the terms of the GNU Library General Public License as published by |
10 | // the Free Software Foundation; either version 2 of the License, or (at your | | 10 | // the Free Software Foundation; either version 2 of the License, or (at your |
11 | // option) any later version. | | 11 | // option) any later version. |
12 | // | | 12 | // |
13 | // This library is distributed in the hope that it will be useful, but WITHOUT | | 13 | // This library is distributed in the hope that it will be useful, but WITHOUT |
14 | // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | | 14 | // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
15 | // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | | 15 | // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public |
| @@ -20,26 +20,27 @@ | | | @@ -20,26 +20,27 @@ |
20 | // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | | 20 | // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 | | | 21 | |
22 | // The id3lib authors encourage improvements and optimisations to be sent to | | 22 | // The id3lib authors encourage improvements and optimisations to be sent to |
23 | // the id3lib coordinator. Please see the README file for details on where to | | 23 | // the id3lib coordinator. Please see the README file for details on where to |
24 | // send such submissions. See the AUTHORS file for a list of people who have | | 24 | // send such submissions. See the AUTHORS file for a list of people who have |
25 | // contributed to id3lib. See the ChangeLog file for a list of changes to | | 25 | // contributed to id3lib. See the ChangeLog file for a list of changes to |
26 | // id3lib. These files are distributed with id3lib at | | 26 | // id3lib. These files are distributed with id3lib at |
27 | // http://download.sourceforge.net/id3lib/ | | 27 | // http://download.sourceforge.net/id3lib/ |
28 | | | 28 | |
29 | #ifndef _ID3LIB_STRINGS_H_ | | 29 | #ifndef _ID3LIB_STRINGS_H_ |
30 | #define _ID3LIB_STRINGS_H_ | | 30 | #define _ID3LIB_STRINGS_H_ |
31 | | | 31 | |
32 | #include <string> | | 32 | #include <string> |
| | | 33 | #include <string.h> |
33 | | | 34 | |
34 | #if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000)) | | 35 | #if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000)) |
35 | namespace std | | 36 | namespace std |
36 | { | | 37 | { |
37 | template<> | | 38 | template<> |
38 | struct char_traits<unsigned char> | | 39 | struct char_traits<unsigned char> |
39 | { | | 40 | { |
40 | typedef unsigned char char_type; | | 41 | typedef unsigned char char_type; |
41 | // Unsigned as wint_t in unsigned. | | 42 | // Unsigned as wint_t in unsigned. |
42 | typedef unsigned long int_type; | | 43 | typedef unsigned long int_type; |
43 | typedef streampos pos_type; | | 44 | typedef streampos pos_type; |
44 | typedef streamoff off_type; | | 45 | typedef streamoff off_type; |
45 | typedef mbstate_t state_type; | | 46 | typedef mbstate_t state_type; |