X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c3ead1d1513a5eb79091a604f4e42b45d1bdf5d..c9ccc09c64f4c29d4667796bef7b507d9e8d25ed:/include/wx/dlimpexp.h diff --git a/include/wx/dlimpexp.h b/include/wx/dlimpexp.h index 13231ed6fd..325f467651 100644 --- a/include/wx/dlimpexp.h +++ b/include/wx/dlimpexp.h @@ -91,6 +91,7 @@ # define WXMAKINGDLL_RICHTEXT # define WXMAKINGDLL_MEDIA # define WXMAKINGDLL_STC +# define WXMAKINGDLL_WEB #endif /* WXMAKINGDLL */ /* @@ -263,6 +264,17 @@ # define WXDLLIMPEXP_DATA_STC(type) type #endif +#ifdef WXMAKINGDLL_WEB +# define WXDLLIMPEXP_WEB WXEXPORT +# define WXDLLIMPEXP_DATA_WEB(type) WXEXPORT type +#elif defined(WXUSINGDLL) +# define WXDLLIMPEXP_WEB WXIMPORT +# define WXDLLIMPEXP_DATA_WEB(type) WXIMPORT type +#else /* not making nor using DLL */ +# define WXDLLIMPEXP_WEB +# define WXDLLIMPEXP_DATA_WEB(type) type +#endif + /* GCC warns about using __attribute__ (and also __declspec in mingw32 case) on forward declarations while MSVC complains about forward declarations without @@ -284,6 +296,7 @@ #define WXDLLIMPEXP_FWD_RICHTEXT #define WXDLLIMPEXP_FWD_MEDIA #define WXDLLIMPEXP_FWD_STC + #define WXDLLIMPEXP_FWD_WEB #else #define WXDLLIMPEXP_FWD_BASE WXDLLIMPEXP_BASE #define WXDLLIMPEXP_FWD_NET WXDLLIMPEXP_NET @@ -299,6 +312,7 @@ #define WXDLLIMPEXP_FWD_RICHTEXT WXDLLIMPEXP_RICHTEXT #define WXDLLIMPEXP_FWD_MEDIA WXDLLIMPEXP_MEDIA #define WXDLLIMPEXP_FWD_STC WXDLLIMPEXP_STC + #define WXDLLIMPEXP_FWD_WEB WXDLLIMPEXP_WEB #endif /* for backwards compatibility, define suffix-less versions too */