libdvdread 7.0.1
attributes.h
1/*
2 * This file is part of libdvdread
3 * Copyright (C) 2010-2025 hpi1 and VideoLAN
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see
17 * <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBDVDREAD_ATTRIBUTES_H
21#define LIBDVDREAD_ATTRIBUTES_H
22
23#ifdef DVDREAD_API_EXPORT
24# if defined(_WIN32)
25# define DVDREAD_API __declspec(dllexport)
26# elif defined(__GNUC__) && __GNUC__ >= 4
27# define DVDREAD_API __attribute__((visibility("default")))
28# endif
29#else
30# define DVDREAD_API
31#endif
32
33#endif /* LIBDVDREAD_ATTRIBUTES_H */