summaryrefslogtreecommitdiffstats
path: root/include/ixion/env.hpp
blob: c164a1d2d49c566beb31268c6a26d0953dafa44d (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef INCLUDED_IXION_ENV_HPP
#define INCLUDED_IXION_ENV_HPP

#if defined _WIN32 || defined __CYGWIN__
  #if defined __MINGW32__
    #define IXION_DLLPUBLIC
    #define IXION_DLLPUBLIC_VAR extern
  #elif defined IXION_BUILD
     #ifdef DLL_EXPORT
       #define IXION_DLLPUBLIC __declspec(dllexport)
       #define IXION_DLLPUBLIC_VAR extern __declspec(dllexport)
     #else
       #define IXION_DLLPUBLIC
       #define IXION_DLLPUBLIC_VAR extern
     #endif
  #else
     #define IXION_DLLPUBLIC __declspec(dllimport)
     #define IXION_DLLPUBLIC_VAR extern __declspec(dllimport)
  #endif
  #define IXION_DLLLOCAL
#else
  #if defined __GNUC__ && __GNUC__ >= 4
    #define IXION_DLLPUBLIC __attribute__ ((visibility ("default")))
    #define IXION_DLLLOCAL  __attribute__ ((visibility ("hidden")))
  #else
    #define IXION_DLLPUBLIC
    #define IXION_DLLLOCAL
  #endif
  #define IXION_DLLPUBLIC_VAR IXION_DLLPUBLIC extern
#endif

#if _WIN32
#define IXION_MOD_EXPORT __declspec(dllexport)
#else
#define IXION_MOD_EXPORT __attribute__ ((visibility ("default")))
#endif

#if defined(IXION_TRACE_ON) || defined(IXION_DEBUG_ON)
#define IXION_LOGGING 1
#else
#define IXION_LOGGING 0
#endif

#ifdef __GNUC__
  #define IXION_DEPRECATED __attribute__ ((deprecated))
#elif defined(_MSC_VER)
  #define IXION_DEPRECATED __declspec(deprecated)
#else
  #define IXION_DEPRECATED
#endif

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */