From 4f9cdcc810bd4af92a2383d29214fa9691dccef3 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Thu, 10 Jun 2010 21:32:00 +0000 Subject: Compile fix for shared library builds. Patch by: Evan Martin. git-svn-id: http://skia.googlecode.com/svn/trunk@576 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/images/SkImageDecoder_Factory.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/images/SkImageDecoder_Factory.cpp b/src/images/SkImageDecoder_Factory.cpp index 2090d857dc..cb5ff2143f 100644 --- a/src/images/SkImageDecoder_Factory.cpp +++ b/src/images/SkImageDecoder_Factory.cpp @@ -22,7 +22,9 @@ typedef SkTRegistry DecodeReg; -template<> DecodeReg* DecodeReg::gHead; +// N.B. You can't use "DecodeReg::gHead here" due to complex C++ +// corner cases. +template DecodeReg* SkTRegistry::gHead; #ifdef SK_ENABLE_LIBPNG extern SkImageDecoder* sk_libpng_dfactory(SkStream*); -- cgit v1.2.3