Mercurial > hg > orthanc
annotate Core/Exports.h @ 3989:bf6295ebc462
test
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 May 2020 19:04:15 +0200 |
parents | bdd8f952dd47 |
children | 226ab94a33cd |
rev | line source |
---|---|
3988
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 /** |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 * Orthanc - A Lightweight, RESTful DICOM Store |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 * |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 * This program is free software: you can redistribute it and/or |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 * modify it under the terms of the GNU General Public License as |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 * published by the Free Software Foundation, either version 3 of the |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 * License, or (at your option) any later version. |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 * |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 * In addition, as a special exception, the copyright holders of this |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 * program give permission to link the code of its release with the |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 * OpenSSL project's "OpenSSL" library (or with modified versions of it |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 * that use the same license as the "OpenSSL" library), and distribute |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 * the linked executables. You must obey the GNU General Public License |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 * in all respects for all of the code used other than "OpenSSL". If you |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 * modify file(s) with this exception, you may extend this exception to |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 * your version of the file(s), but you are not obligated to do so. If |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 * you do not wish to do so, delete this exception statement from your |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 * version. If you delete this exception statement from all source files |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 * in the program, then also delete it here. |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 * |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 * This program is distributed in the hope that it will be useful, but |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 * WITHOUT ANY WARRANTY; without even the implied warranty of |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 * General Public License for more details. |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 * |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 * You should have received a copy of the GNU General Public License |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 **/ |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 #pragma once |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 // https://gcc.gnu.org/wiki/Visibility |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 #if defined(_WIN32) || defined (__CYGWIN__) |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 # if !defined(BUILDING_ORTHANC_FRAMEWORK) |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 # error Macro BUILDING_ORTHANC_FRAMEWORK must be defined |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 # elif BUILDING_ORTHANC_FRAMEWORK == 1 |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 # define ORTHANC_PUBLIC __declspec(dllexport) |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 # else |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 # define ORTHANC_PUBLIC __declspec(dllimport) |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 # endif |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 # define ORTHANC_LOCAL |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 #else |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 # if __GNUC__ >= 4 |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 # define ORTHANC_PUBLIC __attribute__ ((visibility ("default"))) |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 # define ORTHANC_LOCAL __attribute__ ((visibility ("hidden"))) |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 # else |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 # define ORTHANC_PUBLIC |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 # define ORTHANC_LOCAL |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 # pragma warning Unknown dynamic link import/export semantics |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 # endif |
bdd8f952dd47
playing with visibility
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 #endif |