aboutsummaryrefslogtreecommitdiff
path: root/cutl/details/export.hxx
blob: 9b88d0241165f669377f9a4e80c1a1932ff8c0ed (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
36
37
// file      : cutl/details/export.hxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
// license   : MIT; see accompanying LICENSE file

#ifndef CUTL_DETAILS_EXPORT_HXX
#define CUTL_DETAILS_EXPORT_HXX

#include <cutl/details/config.hxx>

#ifdef LIBCUTL_STATIC_LIB
#  define LIBCUTL_EXPORT
#else
#  ifdef _WIN32
#    ifdef _MSC_VER
#      ifdef LIBCUTL_DYNAMIC_LIB
#        define LIBCUTL_EXPORT __declspec(dllexport)
#      else
#        define LIBCUTL_EXPORT __declspec(dllimport)
#      endif
#    else
#      ifdef LIBCUTL_DYNAMIC_LIB
#        ifdef DLL_EXPORT
#          define LIBCUTL_EXPORT __declspec(dllexport)
#        else
#          define LIBCUTL_EXPORT
#        endif
#      else
#        define LIBCUTL_EXPORT __declspec(dllimport)
#      endif
#    endif
#  else
#    define LIBCUTL_EXPORT
#  endif
#endif

#endif // CUTL_DETAILS_EXPORT_HXX