summaryrefslogtreecommitdiff
path: root/src/libicalvcal/libical_vcal_export.h
blob: 3404c28e2f65942a7531cea1df2fb633eb3caf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
  SPDX-FileCopyrightText: Allen Winter <winter@kde.org>
  SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
*/
#ifndef LIBICAL_VCAL_EXPORT_H

#define LIBICAL_VCAL_EXPORT_H

#if !defined(S_SPLINT_S)

#ifdef LIBICAL_VCAL_STATIC_DEFINE
#define LIBICAL_VCAL_EXPORT
#define LIBICAL_VCAL_NO_EXPORT
#else
#if defined(_MSC_VER) || defined(__CYGWIN__)
#if defined(libical_vcal_EXPORTS)
       /* We are building this library */
#define LIBICAL_VCAL_EXPORT __declspec(dllexport)
#else
       /* We are using this library */
#define LIBICAL_VCAL_EXPORT __declspec(dllimport)
#endif
#define LIBICAL_VCAL_NO_EXPORT
#else
#define LIBICAL_VCAL_EXPORT __attribute__((visibility("default")))
#define LIBICAL_VCAL_NO_EXPORT __attribute__((visibility("hidden")))
#endif
#endif

#endif

#endif