From 94aa6754b994379a3e5633a528981cff480a07e0 Mon Sep 17 00:00:00 2001 From: Zachary Klein Date: Wed, 5 Jul 2023 17:24:58 -0400 Subject: [PATCH] Fixed redundant PYIMATH_EXPORTS causing compile issues on Windows Clang (#331) Signed-off-by: Zachary Klein --- src/python/PyImath/PyImathStringTable.cpp | 4 ++-- src/python/PyImath/PyImathUtil.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/python/PyImath/PyImathStringTable.cpp b/src/python/PyImath/PyImathStringTable.cpp index af385bcc..344fa958 100644 --- a/src/python/PyImath/PyImathStringTable.cpp +++ b/src/python/PyImath/PyImathStringTable.cpp @@ -89,8 +89,8 @@ StringTableT::hasStringIndex(const StringTableIndex &s) const } namespace { -template class PYIMATH_EXPORT StringTableDetailT; -template class PYIMATH_EXPORT StringTableDetailT; +template class StringTableDetailT; +template class StringTableDetailT; } template class PYIMATH_EXPORT StringTableT; diff --git a/src/python/PyImath/PyImathUtil.h b/src/python/PyImath/PyImathUtil.h index 52a1fbdf..4b3351f8 100644 --- a/src/python/PyImath/PyImathUtil.h +++ b/src/python/PyImath/PyImathUtil.h @@ -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; @@ -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;