PLCnext API Documentation 25.0.2.69
Library.h
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
7
8#if defined _WIN32 || defined __CYGWIN__
9 #ifdef ARP_BUILDING_DYNAMIC_LIBRARY
10 #ifdef __GNUC__
11 #define ARP_DYNAMIC_LIBRARY_API __attribute__ ((dllexport))
12 #else
13 #define ARP_DYNAMIC_LIBRARY_API __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
14 #endif
15 #else
16 #ifdef __GNUC__
17 #define ARP_DYNAMIC_LIBRARY_API __attribute__ ((dllimport))
18 #else
19 #define ARP_DYNAMIC_LIBRARY_API __declspec(dllimport) // Note: actually gcc seems to also supports this syntax.
20 #endif
21 #endif
22 #ifdef __GNUC__
23 #define ARP_STATIC_LIBRARY_API __attribute__ ((dllexport))
24 #else
25 #define ARP_STATIC_LIBRARY_API __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
26 #endif
27#else
28 #if __GNUC__ >= 4
29 #define ARP_DYNAMIC_LIBRARY_API __attribute__ ((visibility ("default")))
30 #define ARP_STATIC_LIBRARY_API __attribute__ ((visibility ("default")))
31 #else
32 #define ARP_DYNAMIC_LIBRARY_API
33 #define ARP_STATIC_LIBRARY_API
34 #endif
35#endif
36