StormByte C++ Library: System module 1.0.1.9999
StormByte-System is the C++26 process and environment module of the StormByte suite.
Loading...
Searching...
No Matches
visibility.h
1/*
2 * Copyright (C) 2024-2026 David C. Manuelda (StormBytePP)
3 *
4 * This file is part of StormByte-System.
5 *
6 * StormByte-System is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version 3
8 * or later, as published by the Free Software Foundation.
9 *
10 * StormByte-System 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 StormByte-System. If not, see
17 * <https://www.gnu.org/licenses/lgpl-3.0.html>.
18 */
19
20#pragma once
21
22#include <StormByte/platform.h>
23
24#ifdef WINDOWS
25 #ifdef StormByte_System_EXPORTS
26 #define STORMBYTE_SYSTEM_PUBLIC __declspec(dllexport)
27 #else
28 #define STORMBYTE_SYSTEM_PUBLIC __declspec(dllimport)
29 #endif
30 #define STORMBYTE_SYSTEM_PRIVATE
31#else
32 #define STORMBYTE_SYSTEM_PUBLIC __attribute__ ((visibility ("default")))
33 #define STORMBYTE_SYSTEM_PRIVATE __attribute__ ((visibility ("hidden")))
34#endif