diff --git a/src/Magnum/ResourceManager.hpp b/src/Magnum/ResourceManager.hpp index 44ffc3d02..16b7f2127 100644 --- a/src/Magnum/ResourceManager.hpp +++ b/src/Magnum/ResourceManager.hpp @@ -38,7 +38,11 @@ namespace Magnum { namespace Implementation { -template CORRADE_VISIBILITY_EXPORT ResourceManager*& ResourceManagerLocalInstanceImplementation::internalInstance() { +template +#ifndef _MSC_VER +CORRADE_VISIBILITY_EXPORT +#endif +ResourceManager*& ResourceManagerLocalInstanceImplementation::internalInstance() { static ResourceManager* _instance(nullptr); return _instance; }