Blue Brain BioExplorer
Api.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  *
4  * Responsible Author: Daniel.Nachbaur@epfl.ch
5  *
6  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License version 3.0 as published
10  * by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #pragma once
23 
24 #if defined(_MSC_VER) || defined(__declspec)
25 #define CORE_DLLEXPORT __declspec(dllexport)
26 #define CORE_DLLIMPORT __declspec(dllimport)
27 #else // _MSC_VER
28 #define CORE_DLLEXPORT
29 #define CORE_DLLIMPORT
30 #endif // _MSC_VER
31 
32 #if defined(CORE_STATIC)
33 #define PLATFORM_API
34 #elif defined(CORE_SHARED)
35 #define PLATFORM_API CORE_DLLEXPORT
36 #else
37 #define PLATFORM_API CORE_DLLIMPORT
38 #endif