]> ncurses.scripts.mit.edu Git - ncurses.git/blob - include/ncurses_dll.h
ncurses 5.3
[ncurses.git] / include / ncurses_dll.h
1 /* $Id: ncurses_dll.h,v 1.2 2001/12/09 01:36:34 tom Exp $ */
2
3 #ifndef NCURSES_DLL_H_incl
4 #define NCURSES_DLL_H_incl 1
5
6 #undef NCURSES_DLL      /* cygwin dll not implemented */
7 #define NCURSES_STATIC  /* cygwin dll not implemented */
8
9 #if defined(__CYGWIN__)
10 #  if defined(NCURSES_DLL)
11 #    if defined(NCURSES_STATIC)
12 #      undef NCURSES_STATIC
13 #    endif
14 #  endif
15 #  undef NCURSES_IMPEXP
16 #  undef NCURSES_API
17 #  undef NCURSES_EXPORT(type)
18 #  undef NCURSES_EXPORT_VAR(type)
19 #  if defined(NCURSES_DLL)
20 /* building a 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 */
25 #  else
26 /* linking to the DLL */
27 #    define NCURSES_IMPEXP __declspec(dllimport)
28 #  endif
29 #  define NCURSES_API __cdecl
30 #  define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
31 #  define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
32 #endif
33
34 /* Take care of non-cygwin platforms */
35 #if !defined(NCURSES_IMPEXP)
36 #  define NCURSES_IMPEXP /* nothing */
37 #endif
38 #if !defined(NCURSES_API)
39 #  define NCURSES_API /* nothing */
40 #endif
41 #if !defined(NCURSES_EXPORT)
42 #  define NCURSES_EXPORT(type) NCURSES_IMPEXP type NCURSES_API
43 #endif
44 #if !defined(NCURSES_EXPORT_VAR)
45 #  define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
46 #endif
47
48 #endif /* NCURSES_DLL_H_incl */