QDMI on IQM
1.6.1
Implementation of a QDMI device for IQM Quantum Computers
Loading...
Searching...
No Matches
src/include/iqm_qdmi/export.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 - 2026 QDMI Maintainers
3
* All rights reserved.
4
*
5
* Licensed under the Apache License v2.0 with LLVM Exceptions (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* https://llvm.org/LICENSE.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
* License for the specific language governing permissions and limitations under
15
* the License.
16
*
17
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
18
*/
19
23
24
#pragma once
25
26
#ifdef IQM_QDMI_STATIC_DEFINE
29
#define IQM_QDMI_EXPORT
31
#define IQM_QDMI_DRIVER_EXPORT
34
#define IQM_QDMI_NO_EXPORT
35
#else
36
#ifndef IQM_QDMI_EXPORT
37
#ifdef IQM_QDMI_device_EXPORTS
38
/* We are building this library */
39
#ifdef _WIN32
41
#define IQM_QDMI_EXPORT __declspec(dllexport)
42
#else
44
#define IQM_QDMI_EXPORT __attribute__((visibility("default")))
45
#endif
46
#else
47
/* We are using this library */
48
#ifdef _WIN32
50
#define IQM_QDMI_EXPORT __declspec(dllimport)
51
#else
53
#define IQM_QDMI_EXPORT __attribute__((visibility("default")))
54
#endif
55
#endif
56
#endif
57
58
#ifndef IQM_QDMI_DRIVER_EXPORT
59
#ifdef IQM_QDMI_driver_EXPORTS
60
#ifdef _WIN32
62
#define IQM_QDMI_DRIVER_EXPORT __declspec(dllexport)
63
#else
65
#define IQM_QDMI_DRIVER_EXPORT __attribute__((visibility("default")))
66
#endif
67
#else
68
#ifdef _WIN32
70
#define IQM_QDMI_DRIVER_EXPORT __declspec(dllimport)
71
#else
73
#define IQM_QDMI_DRIVER_EXPORT __attribute__((visibility("default")))
74
#endif
75
#endif
76
#endif
77
78
#ifndef IQM_QDMI_NO_EXPORT
79
#ifdef _WIN32
81
#define IQM_QDMI_NO_EXPORT
82
#else
84
#define IQM_QDMI_NO_EXPORT __attribute__((visibility("hidden")))
85
#endif
86
#endif
87
#endif
88
89
#ifndef IQM_QDMI_DEPRECATED
90
#ifdef _WIN32
92
#define IQM_QDMI_DEPRECATED __declspec(deprecated)
93
#else
95
#define IQM_QDMI_DEPRECATED __attribute__((__deprecated__))
96
#endif
97
#endif
98
99
#ifndef IQM_QDMI_DEPRECATED_EXPORT
101
#define IQM_QDMI_DEPRECATED_EXPORT IQM_QDMI_EXPORT IQM_QDMI_DEPRECATED
102
#endif
103
104
#ifndef IQM_QDMI_DEPRECATED_NO_EXPORT
106
#define IQM_QDMI_DEPRECATED_NO_EXPORT IQM_QDMI_NO_EXPORT IQM_QDMI_DEPRECATED
107
#endif
src
include
iqm_qdmi
export.h
Generated by
1.16.1