MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
6#if defined(__GNUC__) || defined(__clang__)
7# define MXL_EXPORT __attribute__((visibility("default")))
8#else
9# define MXL_EXPORT
10#endif
11
12// TODO: Tailor these more to specific language statdard levels
13#ifdef __cplusplus
14# define MXL_NODISCARD [[nodiscard]]
15# define MXL_CONSTEXPR constexpr
16#else
17# define MXL_NODISCARD
18# define MXL_CONSTEXPR inline
19#endif