summaryrefslogtreecommitdiffhomepage
path: root/include/w32lib/w32lib_api.h
blob: 5b2c21184e82683dabd6514821798b7622dc199c (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>

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

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

/* w32lib_api */
#ifndef W32LIB_APP
#if     defined (W32LIB_EXPORT)
#define w32lib_api w32lib_export
#elif   defined (W32LIB_IMPORT)
#define w32lib_api w32lib_import
#elif   defined (W32LIB_STATIC)
#define w32lib_api
#else
#define w32lib_api
#endif
#else
#define w32lib_api
#endif

#endif