X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61aba4609aa384e8906e76715ea483cbf46c6725..54582f9ac65be400bf998d26197eba4f7650a574:/samples/dll/my_dll.h?ds=sidebyside diff --git a/samples/dll/my_dll.h b/samples/dll/my_dll.h index ffb53a1053..3b4c29bf7a 100644 --- a/samples/dll/my_dll.h +++ b/samples/dll/my_dll.h @@ -15,11 +15,17 @@ 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