1 /* $Id: ncurses_dll.h,v 1.2 2001/12/09 01:36:34 tom Exp $ */
3 #ifndef NCURSES_DLL_H_incl
4 #define NCURSES_DLL_H_incl 1
6 #undef NCURSES_DLL /* cygwin dll not implemented */
7 #define NCURSES_STATIC /* cygwin dll not implemented */
9 #if defined(__CYGWIN__)
10 # if defined(NCURSES_DLL)
11 # if defined(NCURSES_STATIC)
12 # undef NCURSES_STATIC
15 # undef NCURSES_IMPEXP
17 # undef NCURSES_EXPORT(type)
18 # undef NCURSES_EXPORT_VAR(type)
19 # if defined(NCURSES_DLL)
21 # define NCURSES_IMPEXP __declspec(dllexport)
22 # elif defined(NCURSES_STATIC)
23 /* building or linking to a static library */
24 # define NCURSES_IMPEXP /* nothing */
26 /* linking to the DLL */
27 # define NCURSES_IMPEXP __declspec(dllimport)
29 # define NCURSES_API __cdecl
30 # define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
31 # define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
34 /* Take care of non-cygwin platforms */
35 #if !defined(NCURSES_IMPEXP)
36 # define NCURSES_IMPEXP /* nothing */
38 #if !defined(NCURSES_API)
39 # define NCURSES_API /* nothing */
41 #if !defined(NCURSES_EXPORT)
42 # define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
44 #if !defined(NCURSES_EXPORT_VAR)
45 # define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
48 #endif /* NCURSES_DLL_H_incl */