open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
arch.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2020 (c) Matthias Konnerth
6 */
7
8#ifndef NODESETLOADER_ARCH_H
9#define NODESETLOADER_ARCH_H
10
11/** this is taken from open62541.com */
12#if defined(_WIN32)
13#ifdef __GNUC__
14#define LOADER_EXPORT __attribute__((dllexport))
15#else
16#define LOADER_EXPORT __declspec(dllexport)
17#endif
18#else /* non win32 */
19#if __GNUC__ || __clang__
20#define LOADER_EXPORT __attribute__((visibility("default")))
21#endif
22#endif
23
24#ifndef LOADER_EXPORT
25#define LOADER_EXPORT /* fallback to default */
26#endif
27
28#endif