deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
declspec.h
1#ifndef DECONZ_DECLSPEC_H
2#define DECONZ_DECLSPEC_H
3
4/*
5 * Copyright (c) 2012-2023 dresden elektronik ingenieurtechnik gmbh.
6 * All rights reserved.
7 *
8 * The software in this package is published under the terms of the BSD
9 * style license a copy of which has been included with this distribution in
10 * the LICENSE.txt file.
11 *
12 */
13
14#ifndef DECONZ_DLLSPEC
15
16#ifdef _WIN32
17
18#ifdef BUILD_ULIB_SHARED
19 #define DECONZ_DLLSPEC __declspec(dllexport)
20#else
21 #define DECONZ_DLLSPEC __declspec(dllimport)
22#endif
23
24#else // Unix
25
26 #define DECONZ_DLLSPEC
27
28#endif
29
30#endif /* ! defined DECONZ_DLLSPEC */
31/*
32 * API_DEPRECATED void foo();
33 */
34
35#ifdef __GNUC__
36#define API_DEPRECATED __attribute__ ((deprecated))
37#elif defined(_MSC_VER)
38#define API_DEPRECATED __declspec(deprecated)
39#else
40#define API_DEPRECATED
41#endif
42
43
44#endif // DECONZ_DECLSPEC_H