Skip to content

Commit 7bf8c0e

Browse files
authored
Merge pull request #303 from Libvisual/singleton-visibility-fix
Core (LV::Singleton): Fix crash due to differing copies of singleton instances in LV and user programs.
2 parents 29e9ed4 + 8113a39 commit 7bf8c0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libvisual/libvisual/lv_singleton.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef _LV_SINGLETON_HPP
22
#define _LV_SINGLETON_HPP
33

4+
#include <libvisual/lv_defines.h>
45
#include <memory>
56

67
namespace LV {
@@ -12,7 +13,7 @@ namespace LV {
1213
//! @note Singleton is implemented using the curiously recurring template pattern (CRTP).
1314
//!
1415
template <class T>
15-
class Singleton
16+
class LV_API Singleton
1617
{
1718
public:
1819

0 commit comments

Comments
 (0)