PLCnext API Documentation 24.0.0.71
PlatformConfig.h
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
7
8#ifndef ARP_INSIDE_ARP_H
9 #error Never include 'PlatformConfig.h' directly, just include 'Arp.h'
10#endif
11
12// define platform almost the same way than boost does
13
14#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
15
16 #define ARP_PLATFORM_WIN32
17
18#elif defined(__CYGWIN__)
19
20 #define ARP_PLATFORM_CYGWIN
21
22#elif (defined(linux) || defined(__linux) || defined(__linux__))
23
24 #define ARP_PLATFORM_LINUX
25
26#else
27
28 #error "Platform is not supported"
29
30#endif
31
32#ifdef ARP_DOXIFY
33
35
37 #define ARP_PLATFORM_WIN32
38
40 #define ARP_PLATFORM_CYGWIN
41
43 #define ARP_PLATFORM_LINUX
44
45#endif // ARP_DOXIFY
46
47
48
49