summaryrefslogtreecommitdiff
path: root/Build/source/libs/pplib/pplib-src/src/util/utildecl.h
blob: b11e5b884323851a98adaa57ffd6614387048c12 (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

#ifndef UTIL_DECL_H
#define UTIL_DECL_H

/*
UTILDLL - when building .dll
UTILEXE - when building .exe to import symbols from .dll
*/

#if defined (_WIN32) || defined(_WIN64)
#  ifdef UTILDLL
#    define UTILAPI __declspec(dllexport)
#    define UTILDEF __declspec(dllexport)
#  else
#    ifdef UTILEXE
#      define UTILAPI __declspec(dllimport)
#      define UTILDEF
#    else
#      define UTILAPI
#      define UTILDEF
#    endif
#  endif
#else
#  define UTILAPI
#  define UTILDEF
#endif

#endif