itom  4.1.0
shapeCommon.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5  Universitaet 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 fuer 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 #ifndef COMMONSHAPES_H
29 #define COMMONSHAPES_H
30 
31 #if (defined ITOMLIBS_SHARED && ( defined(_Windows) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
32 
33  #ifndef ITOMSHAPE_EXPORT
34 
35  /* Borland/Microsoft */
36  #if defined(_MSC_VER) || defined(__BORLANDC__)
37  #if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
38  #else
39  #ifdef ITOMSHAPE_DLL
40  #define ITOMSHAPE_EXPORT __export
41  #else
42  #define ITOMSHAPE_EXPORT /*__import */ /* doesn't exist AFAIK in VC++ */
43  #endif /* Exists in Borland C++ for
44  C++ classes (== huge) */
45  #endif
46  #endif
47 
48  #ifndef ITOMSHAPE_EXPORT //ITOMCOMMON_EXPORT has not be defined yet
49  #ifdef ITOMSHAPE_DLL
50  #define ITOMSHAPE_EXPORT __declspec(dllexport)
51  #else
52  #define ITOMSHAPE_EXPORT __declspec(dllimport)
53  #endif
54  #endif
55 
56  #endif //ITOMSHAPE_EXPORT
57 
58 #endif //windows
59 
60 #ifndef ITOMSHAPE_EXPORT
61  #define ITOMSHAPE_EXPORT
62 #endif
63 
64 
65 
66 
67 #endif // COMMONSHAPES_H
68