QGpgME  9.2.0.0
Qt API for GpgME
qgpgme_export.h
1 /* qgpgme_export.h - Export macros for qgpgme
2 
3  This file is part of qgpgme, the Qt API binding for gpgme
4  Copyright (c) 2016 Intevation GmbH
5 
6  QGpgME is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License as
8  published by the Free Software Foundation; either version 2 of the
9  License, or (at your option) any later version.
10 
11  QGpgME is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 
20  In addition, as a special exception, the copyright holders give
21  permission to link the code of this program with any edition of
22  the Qt library by Trolltech AS, Norway (or with modified versions
23  of Qt that use the same license as Qt), and distribute linked
24  combinations including the two. You must obey the GNU General
25  Public License in all respects for all of the code used other than
26  Qt. If you modify this file, you may extend this exception to
27  your version of the file, but you are not obligated to do so. If
28  you do not wish to do so, delete this exception statement from
29  your version.
30 */
31 
32 #ifndef QGPGME_EXPORT_H
33 #define QGPGME_EXPORT_H
34 
35 #ifdef QGPGME_STATIC_DEFINE
36 # define QGPGME_EXPORT
37 # define QGPGME_NO_EXPORT
38 #else
39 # ifndef QGPGME_EXPORT
40 # ifdef BUILDING_QGPGME
41  /* We are building this library */
42 # ifdef WIN32
43 # define QGPGME_EXPORT __declspec(dllexport)
44 # else
45 # define QGPGME_EXPORT __attribute__((visibility("default")))
46 # endif
47 # else
48  /* We are using this library */
49 # ifdef WIN32
50 # define QGPGME_EXPORT __declspec(dllimport)
51 # else
52 # define QGPGME_EXPORT __attribute__((visibility("default")))
53 # endif
54 # endif
55 # endif
56 
57 # ifndef QGPGME_NO_EXPORT
58 # ifdef WIN32
59 # define QGPGME_NO_EXPORT
60 # else
61 # define QGPGME_NO_EXPORT __attribute__((visibility("hidden")))
62 # endif
63 # endif
64 #endif
65 
66 #ifndef QGPGME_DEPRECATED
67 # define QGPGME_DEPRECATED __attribute__ ((__deprecated__))
68 #endif
69 
70 #ifndef QGPGME_DEPRECATED_EXPORT
71 # define QGPGME_DEPRECATED_EXPORT QGPGME_EXPORT QGPGME_DEPRECATED
72 #endif
73 
74 #ifndef QGPGME_DEPRECATED_NO_EXPORT
75 # define QGPGME_DEPRECATED_NO_EXPORT QGPGME_NO_EXPORT QGPGME_DEPRECATED
76 #endif
77 
78 #define DEFINE_NO_DEPRECATED 0
79 #if DEFINE_NO_DEPRECATED
80 # define QGPGME_NO_DEPRECATED
81 #endif
82 
83 #endif