Skip to content

Commit

Permalink
Fixed redundant PYIMATH_EXPORTS causing compile issues on Windows Cla…
Browse files Browse the repository at this point in the history
…ng (AcademySoftwareFoundation#331)

Signed-off-by: Zachary Klein <[email protected]>
  • Loading branch information
ZTKlein authored and cary-ilm committed Jan 24, 2024
1 parent 80775e0 commit 83d7fce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/python/PyImath/PyImathStringTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ StringTableT<T>::hasStringIndex(const StringTableIndex &s) const
}

namespace {
template class PYIMATH_EXPORT StringTableDetailT<std::string>;
template class PYIMATH_EXPORT StringTableDetailT<std::wstring>;
template class StringTableDetailT<std::string>;
template class StringTableDetailT<std::wstring>;
}

template class PYIMATH_EXPORT StringTableT<std::string>;
Expand Down
16 changes: 8 additions & 8 deletions src/python/PyImath/PyImathUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class PyAcquireLock
PYIMATH_EXPORT PyAcquireLock();
PYIMATH_EXPORT ~PyAcquireLock();

PYIMATH_EXPORT PyAcquireLock(const PyAcquireLock& other) = delete;
PYIMATH_EXPORT PyAcquireLock & operator = (PyAcquireLock& other) = delete;
PYIMATH_EXPORT PyAcquireLock(PyAcquireLock&& other) = delete;
PYIMATH_EXPORT PyAcquireLock & operator = (PyAcquireLock&& other) = delete;
PyAcquireLock(const PyAcquireLock& other) = delete;
PyAcquireLock & operator = (PyAcquireLock& other) = delete;
PyAcquireLock(PyAcquireLock&& other) = delete;
PyAcquireLock & operator = (PyAcquireLock&& other) = delete;

private:
PyGILState_STATE _gstate;
Expand All @@ -64,10 +64,10 @@ class PyReleaseLock
public:
PYIMATH_EXPORT PyReleaseLock();
PYIMATH_EXPORT ~PyReleaseLock();
PYIMATH_EXPORT PyReleaseLock(const PyReleaseLock& other) = delete;
PYIMATH_EXPORT PyReleaseLock & operator = (PyReleaseLock& other) = delete;
PYIMATH_EXPORT PyReleaseLock(PyReleaseLock&& other) = delete;
PYIMATH_EXPORT PyReleaseLock & operator = (PyReleaseLock&& other) = delete;
PyReleaseLock(const PyReleaseLock& other) = delete;
PyReleaseLock & operator = (PyReleaseLock& other) = delete;
PyReleaseLock(PyReleaseLock&& other) = delete;
PyReleaseLock & operator = (PyReleaseLock&& other) = delete;

private:
PyThreadState *_save;
Expand Down

0 comments on commit 83d7fce

Please sign in to comment.