From 4756aa99f5756a6cac199c1aae6c37514cf1c562 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 14 Jan 2010 23:38:54 +0100 Subject: Replace std::tr1::unordered_(map|set) with __gnu_cxx::hash_(map|set), to work around broken headers in some GCC versions. (bzr r8980) --- src/libnrtype/FontFactory.cpp | 5 +++-- src/libnrtype/FontInstance.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp index a63f70d75..afce4d849 100644 --- a/src/libnrtype/FontFactory.cpp +++ b/src/libnrtype/FontFactory.cpp @@ -26,10 +26,11 @@ /* Freetype2 */ # include -#include +//#include +#include -typedef std::tr1::unordered_map FaceMapType; +typedef __gnu_cxx::hash_map FaceMapType; // need to avoid using the size field size_t font_descr_hash::operator()( PangoFontDescription *const &x) const { diff --git a/src/libnrtype/FontInstance.cpp b/src/libnrtype/FontInstance.cpp index 6b0725b34..8b8eb8bbe 100644 --- a/src/libnrtype/FontInstance.cpp +++ b/src/libnrtype/FontInstance.cpp @@ -29,7 +29,8 @@ # include FT_TRUETYPE_TABLES_H # include -#include +//#include +#include // the various raster_font in use at a given time are held in a hash_map whose indices are the @@ -43,7 +44,7 @@ struct font_style_equal : public std::binary_function StyleMap; +typedef __gnu_cxx::hash_map StyleMap; -- cgit v1.2.3