blob: 06fc28f1279352c4ef3aab536986b30ac5f4bc5b (
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
|
/**
SPDX-FileCopyrightText: Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
*/
#ifndef LIBICAL_DEPRECATED_H
#define LIBICAL_DEPRECATED_H
/* Deprecated function macro */
#if defined(NO_DEPRECATION_WARNINGS)
#define LIBICAL_DEPRECATED(x) x
#else
#if !defined(LIBICAL_DEPRECATED)
#ifdef __GNUC__
#define LIBICAL_DEPRECATED(x) x __attribute__((deprecated))
#elif defined(_MSC_VER)
#define LIBICAL_DEPRECATED(x) __declspec(deprecated) x
#else
#define LIBICAL_DEPRECATED(x) x
#endif
#endif
#endif
#endif
|