Removed TAGLIB_HAVE_STD_WSTRING macro that affects the public ABI

This commit is contained in:
Tsuda Kageyu 2013-05-03 18:26:43 +09:00
parent 198530547d
commit 03adafbfd9
5 changed files with 2 additions and 19 deletions

View File

@ -39,16 +39,6 @@ else()
set(SYSTEM_BYTEORDER 2)
endif()
# Determine if your compiler supports std::wstring.
check_cxx_source_compiles("
#include <string>
int main() {
std::wstring x(L\"ABC\");
return 0;
}
" TAGLIB_HAVE_STD_WSTRING)
# Determine which kind of atomic operations your compiler supports.
check_cxx_source_compiles("

View File

@ -1,8 +1,5 @@
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
/* Defined if your compiler supports std::wstring */
#cmakedefine TAGLIB_HAVE_STD_WSTRING 1
#define TAGLIB_WITH_ASF 1
#define TAGLIB_WITH_MP4 1

View File

@ -73,11 +73,7 @@ namespace TagLib {
* Unfortunately std::wstring isn't defined on some systems, (i.e. GCC < 3)
* so I'm providing something here that should be constant.
*/
#ifdef TAGLIB_HAVE_STD_WSTRING
typedef std::wstring wstring;
#else
typedef std::basic_string<wchar> wstring;
#endif
}
/*!

View File

@ -102,4 +102,4 @@ namespace TagLib
{
return d->count();
}
}
}

View File

@ -54,4 +54,4 @@ namespace TagLib
}
#endif // DO_NOT_DOCUMENT
#endif
#endif