itom
Loading...
Searching...
No Matches
defines.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2021, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom and its software development toolkit (SDK).
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 In addition, as a special exception, the Institut für Technische
15 Optik (ITO) gives you certain additional rights.
16 These rights are described in the ITO LGPL Exception version 1.0,
17 which can be found in the file LGPL_EXCEPTION.txt in this package.
18
19 itom is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22 General Public Licence for more details.
23
24 You should have received a copy of the GNU Library General Public License
25 along with itom. If not, see <http://www.gnu.org/licenses/>.
26*********************************************************************** */
27
28#if ( \
29 defined ITOMLIBS_SHARED && \
30 (defined(_Windows) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32) || \
31 defined(__WIN32__)))
32
33#ifndef QPROPERTYEDITOR_EXPORT
34
35/* Borland/Microsoft */
36#if defined(_MSC_VER) || defined(__BORLANDC__)
37#if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
38#else
39#ifdef QPROPERTYEDITOR_DLL
40 #define QPROPERTYEDITOR_EXPORT __export
41 #ifdef ENABLE_INTERNAL_TESTS
42 #define QPROPERTYEDITOR_TEST_EXPORT __export
43 #endif
44#define QPROPERTYEDITOR_TEST_EXPORT __export
45#else
46 #define QPROPERTYEDITOR_EXPORT /*__import */ /* doesn't exist AFAIK in VC++ */
47 #ifdef ENABLE_INTERNAL_TESTS
48 #define QPROPERTYEDITOR_TEST_EXPORT /*__import */ /* doesn't exist AFAIK in VC++ */
49 #endif
50#define QPROPERTYEDITOR_TEST_EXPORT /*__import */ /* doesn't exist AFAIK in VC++ */
51#endif /* Exists in Borland C++ for \
52 C++ classes (== huge) */
53#endif
54#endif
55
56#ifndef QPROPERTYEDITOR_EXPORT // QPROPERTYEDITOR_EXPORT has not be defined yet
57 #ifdef QPROPERTYEDITOR_DLL
58 #define QPROPERTYEDITOR_EXPORT __declspec(dllexport)
59 #ifdef ENABLE_INTERNAL_TESTS
60 #define QPROPERTYEDITOR_TEST_EXPORT __declspec(dllexport)
61 #endif
62 #else
63 #define QPROPERTYEDITOR_EXPORT __declspec(dllimport)
64 #ifdef ENABLE_INTERNAL_TESTS
65 #define QPROPERTYEDITOR_TEST_EXPORT __declspec(dllimport)
66 #endif
67 #endif
68#endif
69
70#endif // QPROPERTYEDITOR_EXPORT
71
72#endif // windows
73
74#ifndef QPROPERTYEDITOR_EXPORT
75#define QPROPERTYEDITOR_EXPORT
76#endif
77
78#ifndef QPROPERTYEDITOR_TEST_EXPORT
79#define QPROPERTYEDITOR_TEST_EXPORT
80#endif