From: Turo Lamminen Date: Thu, 5 Oct 2017 08:05:27 +0000 (+0300) Subject: FBXImporter: Add explicit instantiation of log_prefix so other FBX source files can... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afce9842286a441d5a93a4920f6ce9ca9d3f488c;p=platform%2Fupstream%2Fassimp.git FBXImporter: Add explicit instantiation of log_prefix so other FBX source files can see it --- diff --git a/code/FBXImporter.h b/code/FBXImporter.h index 43be97f..54be838 100644 --- a/code/FBXImporter.h +++ b/code/FBXImporter.h @@ -58,6 +58,14 @@ namespace Formatter { typedef class basic_formatter< char, std::char_traits, std::allocator > format; } +#ifndef _MSC_VER +// GCC and Clang need to see this explicit declaration to avoid warning +// MSVC complains about redeclaration even though this is just the +// declaration, not the definition +class FBXImporter; +template<> const std::string LogFunctions::log_prefix; +#endif // _MSC_VER + // ------------------------------------------------------------------------------------------- /** Load the Autodesk FBX file format.