]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dll/my_dll.h
Applied patch #15286: documentation and col/rowspan demo by dghart
[wxWidgets.git] / samples / dll / my_dll.h
index ffb53a1053a62b53d455512fd0acf5919a5881a8..3b4c29bf7a2ee52e65b64dbacf2eb002407eaebc 100644 (file)
 extern "C" {
 #endif
 
+#ifdef MY_DLL_BUILDING
+    #define MY_DLL_DECL __declspec(dllexport)
+#else
+    #define MY_DLL_DECL __declspec(dllimport)
+#endif
+
 // launch wx UI from some application that may or may not be written in wx
-WXIMPORT void run_wx_gui_from_dll(const char *title);
+MY_DLL_DECL void run_wx_gui_from_dll(const char *title);
 
 // run this to shutdown running threads etc.
-WXIMPORT void wx_dll_cleanup(void);
+MY_DLL_DECL void wx_dll_cleanup();
 
 
 #ifdef __cplusplus