From 22ca04e79698d7cd630134dab0e497ae4efa624e Mon Sep 17 00:00:00 2001 From: Thomas Berg Date: Sat, 10 Apr 2010 16:39:04 +0200 Subject: Remove export macros from inlined classes. The GilState and ThreadStateSaver classes are purely inline, and should not be declared with dllexport/dllimport macros. The dllimport macro forces MSVC not to inline the classes in client code, which causes linker errors, since the symbols are not included in the shiboken dll. Reviewer: Hugo Parente Reviewer: Luciano Wolf --- libshiboken/gilstate.h | 2 +- libshiboken/threadstatesaver.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libshiboken') diff --git a/libshiboken/gilstate.h b/libshiboken/gilstate.h index ee3808ade..ba3aa2920 100644 --- a/libshiboken/gilstate.h +++ b/libshiboken/gilstate.h @@ -40,7 +40,7 @@ namespace Shiboken { -class LIBSHIBOKEN_API GilState +class GilState { public: GilState() { m_gstate = PyGILState_Ensure(); } diff --git a/libshiboken/threadstatesaver.h b/libshiboken/threadstatesaver.h index 6ff4e90d3..47f05f82e 100644 --- a/libshiboken/threadstatesaver.h +++ b/libshiboken/threadstatesaver.h @@ -40,7 +40,7 @@ namespace Shiboken { -class LIBSHIBOKEN_API ThreadStateSaver +class ThreadStateSaver { public: ThreadStateSaver() : m_threadState(0) {} -- cgit v1.2.3