libTriton
version 1.0 build 1592
Loading...
Searching...
No Matches
src
libtriton
includes
triton
dllexport.hpp
Go to the documentation of this file.
1
2
/*
3
** Copyright (C) - Triton
4
**
5
** This program is under the terms of the Apache License 2.0.
6
*/
7
8
#ifndef TRITON_DLLEXPORT_H
9
#define TRITON_DLLEXPORT_H
10
11
#if defined _WIN32 || defined __CYGWIN__
12
#ifdef BUILDING_DLL
13
#ifdef __GNUC__
14
#define TRITON_EXPORT __attribute__ ((dllexport))
15
#else
16
#define TRITON_EXPORT __declspec(dllexport)
// Note: actually gcc seems to also supports this syntax.
17
#endif
18
#else
19
#ifdef __GNUC__
20
#define TRITON_EXPORT __attribute__ ((dllimport))
21
#else
22
#define TRITON_EXPORT
23
#endif
24
#endif
25
#else
26
#if __GNUC__ >= 4
27
#define TRITON_EXPORT __attribute__ ((visibility ("default")))
28
#else
29
#define TRITON_EXPORT
30
#endif
31
#endif
32
33
#endif
/* TRITON_DLLEXPORT_H */
Generated by
1.10.0