PLCnext API Documentation 25.0.2.69
PlatformConfig.h
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
7
8#ifndef ARP_USE_ARP_SYSTEM_CORE
9
10 // nothing to include here, included by Arp.hpp
11
12#else
13
14
15 #ifndef ARP_INSIDE_ARP_H
16 #error Never include 'PlatformConfig.h' directly, just include 'Arp.h'
17 #endif
18
19 // define platform almost the same way than boost does
20
21 #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
22
23 #define ARP_PLATFORM_WIN32
24
25 #elif defined(__CYGWIN__)
26
27 #define ARP_PLATFORM_CYGWIN
28
29 #elif (defined(linux) || defined(__linux) || defined(__linux__))
30
31 #define ARP_PLATFORM_LINUX
32
33 #else
34
35 #error "Platform is not supported"
36
37 #endif
38
39 #ifdef ARP_DOXIFY
40
42
44 #define ARP_PLATFORM_WIN32
45
47 #define ARP_PLATFORM_CYGWIN
48
50 #define ARP_PLATFORM_LINUX
51
52 #endif // ARP_DOXIFY
53
54#endif // ndef ARP_USE_ARP_SYSTEM_CORE
55