PLCnext API Documentation
25.0.2.69
Arp
Base
Core
Detail
PlatformConfig.hpp
1
2
//
3
// Copyright Phoenix Contact GmbH & Co. KG
4
//
6
#pragma once
7
8
#ifndef ARP_INSIDE_ARP_BASE_CORE_ARP_H
9
#error Never include 'PlatformConfig.hpp' directly, just include 'Arp.hpp'
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
#define ARP_PLATFORM_WINDOWS
18
19
#elif defined(__CYGWIN__)
20
21
#define ARP_PLATFORM_CYGWIN
22
23
#elif (defined(linux) || defined(__linux) || defined(__linux__))
24
25
#define ARP_PLATFORM_LINUX
26
27
#else
28
29
#error "Platform is not supported"
30
31
#endif
Generated on Mon May 12 2025 14:03:44 for PLCnext API Documentation by
1.9.4