Salome HOME
Porting SALOME HELLO module to win32 platform.
[samples/hello.git] / src / HELLOGUI / HELLOGUI.h
index f6dcc7ba0128b78822224600b2419ce0737766d3..e38eb26cded2ab9503d1aab36f73d4523e860201 100644 (file)
 #ifndef _HELLOGUI_H_
 #define _HELLOGUI_H_
 
+
+#ifdef WIN32
+# if defined HELLO_EXPORTS || defined Hello_EXPORTS
+#  define HELLO_EXPORT __declspec( dllexport )
+# else
+#  define HELLO_EXPORT __declspec( dllimport )
+# endif
+#else
+# define HELLO_EXPORT
+#endif
+
 #include <SalomeApp_Module.h>
 
 #include <SALOMEconfig.h>
@@ -32,7 +43,7 @@
 
 class SalomeApp_Application;
 
-class HELLOGUI: public SalomeApp_Module
+class HELLO_EXPORT HELLOGUI: public SalomeApp_Module
 {
   Q_OBJECT