PeriDyno 1.0.0
Loading...
Searching...
No Matches
API.h
Go to the documentation of this file.
1/*
2 TabToolbar - a small utility library for Qt, providing tabbed toolbars
3 Copyright (C) 2018 Oleksii Sierov
4
5 TabToolbar is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 TabToolbar is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TabToolbar. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef TT_API_H
19#define TT_API_H
20
21#if defined(_WIN32)
22 #ifdef _MSC_VER
23 #pragma warning(disable: 4251)
24 #endif
25
26 #if defined(TT_BUILDING_DLL)
27 #define TT_API __declspec(dllexport)
28 #else
29 #define TT_API __declspec(dllimport)
30 #endif
31
32#elif defined(__GNUC__)
33
34 #if defined(TT_BUILDING_DLL)
35 #define TT_API __attribute__((visibility("default")))
36 #else
37 #define TT_API
38 #endif
39
40#endif
41
42#endif //TT_API_H