S2OPC OPCUA Toolkit
s2opc_common_export.h
Go to the documentation of this file.
1 /*
2  * Licensed to Systerel under one or more contributor license
3  * agreements. See the NOTICE file distributed with this work
4  * for additional information regarding copyright ownership.
5  * Systerel licenses this file to you under the Apache
6  * License, Version 2.0 (the "License"); you may not use this
7  * file except in compliance with the License. You may obtain
8  * a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 #ifndef S2OPC_COMMON_EXPORT_H
21 #define S2OPC_COMMON_EXPORT_H
22 
23 #ifdef S2OPC_COMMON_STATIC_DEFINE
24 #define S2OPC_COMMON_EXPORT
25 #define S2OPC_COMMON_NO_EXPORT
26 #else
27 #ifndef S2OPC_COMMON_EXPORT
28 #ifdef s2opc_common_EXPORTS
29 /* We are building this library */
30 #define S2OPC_COMMON_EXPORT
31 #else
32 /* We are using this library */
33 #define S2OPC_COMMON_EXPORT
34 #endif
35 #endif
36 
37 #ifndef S2OPC_COMMON_NO_EXPORT
38 #define S2OPC_COMMON_NO_EXPORT
39 #endif
40 #endif
41 
42 #ifndef S2OPC_COMMON_DEPRECATED
43 #define S2OPC_COMMON_DEPRECATED __attribute__((__deprecated__))
44 #endif
45 
46 #ifndef S2OPC_COMMON_DEPRECATED_EXPORT
47 #define S2OPC_COMMON_DEPRECATED_EXPORT S2OPC_COMMON_EXPORT S2OPC_COMMON_DEPRECATED
48 #endif
49 
50 #ifndef S2OPC_COMMON_DEPRECATED_NO_EXPORT
51 #define S2OPC_COMMON_DEPRECATED_NO_EXPORT S2OPC_COMMON_NO_EXPORT S2OPC_COMMON_DEPRECATED
52 #endif
53 
54 #if 0 /* DEFINE_NO_DEPRECATED */
55 #ifndef S2OPC_COMMON_NO_DEPRECATED
56 #define S2OPC_COMMON_NO_DEPRECATED
57 #endif
58 #endif
59 
60 #endif /* S2OPC_COMMON_EXPORT_H */