X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fncurses_dll.h;h=de46c60508e61ed68f72b7cb0e1122bfa0d36141;hp=c961c3e0a49e974e5f58787a5078024f132b3fa6;hb=refs%2Ftags%2Fv5.4;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 diff --git a/include/ncurses_dll.h b/include/ncurses_dll.h index c961c3e0..de46c605 100644 --- a/include/ncurses_dll.h +++ b/include/ncurses_dll.h @@ -1,10 +1,14 @@ -/* $Id: ncurses_dll.h,v 1.2 2001/12/09 01:36:34 tom Exp $ */ +/* $Id: ncurses_dll.h,v 1.4 2003/07/19 18:44:32 Charles.Wilson Exp $ */ #ifndef NCURSES_DLL_H_incl #define NCURSES_DLL_H_incl 1 -#undef NCURSES_DLL /* cygwin dll not implemented */ -#define NCURSES_STATIC /* cygwin dll not implemented */ +/* no longer needed on cygwin or mingw, thanks to auto-import */ +/* but this structure may be useful at some point for an MSVC build */ +/* so, for now unconditionally define the important flags */ +/* "the right way" for proper static and dll+auto-import behavior */ +#undef NCURSES_DLL +#define NCURSES_STATIC #if defined(__CYGWIN__) # if defined(NCURSES_DLL) @@ -14,8 +18,8 @@ # endif # undef NCURSES_IMPEXP # undef NCURSES_API -# undef NCURSES_EXPORT(type) -# undef NCURSES_EXPORT_VAR(type) +# undef NCURSES_EXPORT +# undef NCURSES_EXPORT_VAR # if defined(NCURSES_DLL) /* building a DLL */ # define NCURSES_IMPEXP __declspec(dllexport)