Bug 711385 - DrawTargetD2D.h fails to compile on mingw r=bas.schouten

This commit is contained in:
Jacek Caban 2011-12-19 14:06:10 +01:00
parent 2c13f6f68a
commit bc99c7e07d

View File

@ -45,7 +45,12 @@
#include <vector>
#include <sstream>
#ifdef _MSC_VER
#include <hash_set>
#else
#include <unordered_set>
#endif
namespace mozilla {
namespace gfx {
@ -149,7 +154,11 @@ private:
friend class AutoSaveRestoreClippedOut;
friend class SourceSurfaceD2DTarget;
#ifdef _MSC_VER
typedef stdext::hash_set<DrawTargetD2D*> TargetSet;
#else
typedef std::unordered_set<DrawTargetD2D*> TargetSet;
#endif
bool InitD2DRenderTarget();
void PrepareForDrawing(ID2D1RenderTarget *aRT);