From 2fff42094312dfe466a504aff43064dfeebf0fbb Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 15 May 2009 08:35:51 +0000 Subject: [PATCH] windows port --- src/SUITApp/SUITApp_init_python.hxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/SUITApp/SUITApp_init_python.hxx b/src/SUITApp/SUITApp_init_python.hxx index 99217a19a..3305a7f4e 100644 --- a/src/SUITApp/SUITApp_init_python.hxx +++ b/src/SUITApp/SUITApp_init_python.hxx @@ -29,7 +29,17 @@ #include #include -struct SUIT_PYTHON +#ifdef WNT +# if defined SUITAPP_EXPORTS || defined SUITApp_EXPORTS +# define SUITAPP_EXPORT __declspec(dllexport) +# else +# define SUITAPP_EXPORT __declspec(dllimport) +# endif +#else +# define SUITAPP_EXPORT +#endif + +struct SUITAPP_EXPORT SUIT_PYTHON { static PyThreadState *_gtstate; static PyInterpreterState *_interp; -- 2.39.2