FBXImporter: Add explicit instantiation of log_prefix so other FBX source files can...
authorTuro Lamminen <turotl@gmail.com>
Thu, 5 Oct 2017 08:05:27 +0000 (11:05 +0300)
committerTuro Lamminen <turotl@gmail.com>
Thu, 5 Oct 2017 09:15:25 +0000 (12:15 +0300)
code/FBXImporter.h

index 43be97f..54be838 100644 (file)
@@ -58,6 +58,14 @@ namespace Formatter {
     typedef class basic_formatter< char, std::char_traits<char>, std::allocator<char> > 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<FBXImporter>::log_prefix;
+#endif  // _MSC_VER
+
 // -------------------------------------------------------------------------------------------
 /** Load the Autodesk FBX file format.