aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Berg <merlin66b@gmail.com>2010-04-10 16:39:04 +0200
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-04-12 15:27:55 -0300
commit22ca04e79698d7cd630134dab0e497ae4efa624e (patch)
treef37643d1561fa249a00f6ff5281af236bbb5cf3e
parent25c3249b514a3311337aadf8d29d600591a28d0d (diff)
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 <hugo.lima@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--libshiboken/gilstate.h2
-rw-r--r--libshiboken/threadstatesaver.h2
2 files changed, 2 insertions, 2 deletions
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) {}