diff --git a/Include/cinder/ci_api.h b/Include/cinder/ci_api.h
index 8dcf48c56a7..3dc20fc5199 100644
--- a/Include/cinder/ci_api.h
+++ b/Include/cinder/ci_api.h
@@ -10,25 +10,27 @@
* prerequisites for CinderX being compatible with non-Cinder Python.
*/
+#include "exports.h"
+
// These function the same as PyAPI_* - exporting symbols for use in .so's etc.
-#define CiAPI_FUNC(RTYPE) __attribute__ ((visibility ("default"))) RTYPE
+#define CiAPI_FUNC(RTYPE) Py_EXPORTED_SYMBOL RTYPE
#ifdef __clang__
# ifdef __cplusplus
-# define CiAPI_DATA(RTYPE) __attribute__ ((visibility ("default"))) extern "C" RTYPE
+# define CiAPI_DATA(RTYPE) Py_EXPORTED_SYMBOL extern "C" RTYPE
# else
-# define CiAPI_DATA(RTYPE) __attribute__ ((visibility ("default"))) extern RTYPE
+# define CiAPI_DATA(RTYPE) Py_EXPORTED_SYMBOL extern RTYPE
# endif
#else
# ifdef __cplusplus
-# define CiAPI_DATA(RTYPE) extern "C" __attribute__ ((visibility ("default")))RTYPE
+# define CiAPI_DATA(RTYPE) extern "C" Py_EXPORTED_SYMBOL RTYPE
# else
-# define CiAPI_DATA(RTYPE) extern __attribute__ ((visibility ("default"))) RTYPE
+# define CiAPI_DATA(RTYPE) extern Py_EXPORTED_SYMBOL RTYPE
# endif
#endif
// Clang seems to (always?) make symbols for static inline functions.
#ifdef __clang__
-# define CiAPI_STATIC_INLINE_FUNC(RTYPE) static inline __attribute__ ((visibility ("default"))) RTYPE
+# define CiAPI_STATIC_INLINE_FUNC(RTYPE) static inline Py_EXPORTED_SYMBOL RTYPE
#else
# define CiAPI_STATIC_INLINE_FUNC(RTYPE) static inline RTYPE
#endif
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj
index bfacf154973..cfed92ca045 100644
--- a/PCbuild/_freeze_module.vcxproj
+++ b/PCbuild/_freeze_module.vcxproj
@@ -186,6 +186,7 @@
+
diff --git a/PCbuild/_freeze_module.vcxproj.filters b/PCbuild/_freeze_module.vcxproj.filters
index 7b200e3dcda..f9712cac051 100644
--- a/PCbuild/_freeze_module.vcxproj.filters
+++ b/PCbuild/_freeze_module.vcxproj.filters
@@ -79,6 +79,9 @@
Source Files
+
+ Source Files
+
Source Files
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 7e15b401dbb..eb78cb46950 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -133,6 +133,8 @@
+
+
@@ -515,6 +517,7 @@
+
diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters
index 76bcbafa17c..8ec98e98484 100644
--- a/PCbuild/pythoncore.vcxproj.filters
+++ b/PCbuild/pythoncore.vcxproj.filters
@@ -51,6 +51,12 @@
Include
+
+ Include
+
+
+ Include
+
Include
@@ -1130,6 +1136,9 @@
Python
+
+ Python
+
Python