X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fncurses_dll.h.in;h=469ab580618b4c17d4510f0217561b54a5ae967d;hp=64f1a894abdc7f18196880f60c36a76f18ee810f;hb=2db461ea0b1b29c142e3000d830b520c946e385b;hpb=18f51bcf99101e5bf4c737239c44064227f34db8 diff --git a/include/ncurses_dll.h.in b/include/ncurses_dll.h.in index 64f1a894..469ab580 100644 --- a/include/ncurses_dll.h.in +++ b/include/ncurses_dll.h.in @@ -26,7 +26,7 @@ * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ -/* $Id: ncurses_dll.h.in,v 1.13 2020/02/29 21:53:14 tom Exp $ */ +/* $Id: ncurses_dll.h.in,v 1.15 2020/04/04 23:37:36 tom Exp $ */ #ifndef NCURSES_DLL_H_incl #define NCURSES_DLL_H_incl 1 @@ -75,16 +75,21 @@ #undef NCURSES_DLL #define NCURSES_STATIC +/* + * These are configurable: + */ +#undef NCURSES_API +#undef NCURSES_CXX_IMPEXP +#undef NCURSES_EXPORT +#undef NCURSES_EXPORT_VAR +#undef NCURSES_IMPEXP + #if defined(__CYGWIN__) || defined(_WIN32) # if defined(NCURSES_DLL) # if defined(NCURSES_STATIC) # undef NCURSES_STATIC # endif # endif -# undef NCURSES_IMPEXP -# undef NCURSES_API -# undef NCURSES_EXPORT -# undef NCURSES_EXPORT_VAR # if defined(NCURSES_DLL) /* building a DLL */ # define NCURSES_IMPEXP __declspec(dllexport) @@ -100,9 +105,12 @@ # define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type #endif -/* Take care of non-cygwin platforms */ +/* Take care of non-Windows platforms */ #if !defined(NCURSES_IMPEXP) -# define NCURSES_IMPEXP /* nothing */ +# define NCURSES_IMPEXP @NCURSES_IMPEXP@ +#endif +#if !defined(NCURSES_CXX_IMPEXP) +# define NCURSES_CXX_IMPEXP @NCURSES_CXX_IMPEXP@ #endif #if !defined(NCURSES_API) # define NCURSES_API /* nothing */