Skip to content

Commit 8113a39

Browse files
committed
Core (LV::Singleton): Fix crashes due to differing copies of singleton instances in LV and user programs.
1 parent 29e9ed4 commit 8113a39

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)