Browse Source

Fix linkage for local ResourceManager instance on MSVC.

I feared that this would be much more complicated.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
24d573e453
  1. 6
      src/Magnum/ResourceManager.hpp

6
src/Magnum/ResourceManager.hpp

@ -38,7 +38,11 @@
namespace Magnum { namespace Implementation {
template<class ...Types> CORRADE_VISIBILITY_EXPORT ResourceManager<Types...>*& ResourceManagerLocalInstanceImplementation<Types...>::internalInstance() {
template<class ...Types>
#ifndef _MSC_VER
CORRADE_VISIBILITY_EXPORT
#endif
ResourceManager<Types...>*& ResourceManagerLocalInstanceImplementation<Types...>::internalInstance() {
static ResourceManager<Types...>* _instance(nullptr);
return _instance;
}

Loading…
Cancel
Save