summaryrefslogtreecommitdiffhomepage
path: root/include/w32lib/w32lib_api.h
blob: ae3fd88c85a0741f941fe6bc7ca16bfba50f4008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef W32LIB_API_H
#define W32LIB_API_H

#include <limits.h>

/* wlib_export */
#if	defined(__dllexport)
#define wlib_export __dllexport
#else
#define wlib_export
#endif

/* wlib_import */
#if	defined(__dllimport)
#define wlib_import __dllimport
#else
#define wlib_import
#endif

/* wlib_api */
#ifndef WLIB_APP
#if     defined (WLIB_EXPORT)
#define wlib_api wlib_export
#elif   defined (WLIB_IMPORT)
#define wlib_api wlib_import
#elif   defined (WLIB_STATIC)
#define wlib_api
#else
#define wlib_api
#endif
#else
#define wlib_api
#endif

#endif