OpenVPN 3 Core Library
Loading...
Searching...
No Matches
arch.hpp
Go to the documentation of this file.
1// OpenVPN -- An application to securely tunnel IP networks
2// over a single port, with support for SSL/TLS-based
3// session authentication and key exchange,
4// packet encryption, packet authentication, and
5// packet compression.
6//
7// Copyright (C) 2012- OpenVPN Inc.
8//
9// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10//
11
12// define an ARCH_x macro that describes our target architecture
13
14#ifndef OPENVPN_COMMON_ARCH_H
15#define OPENVPN_COMMON_ARCH_H
16
17#if defined(__amd64__) || defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64)
18#define OPENVPN_ARCH_x86_64
19#elif defined(__i386__) || defined(_M_IX86)
20#define OPENVPN_ARCH_i386
21#elif defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64)
22#define OPENVPN_ARCH_ARM64
23#elif defined(__arm__) || defined(_M_ARM)
24#define OPENVPN_ARCH_ARM
25#endif
26
27#endif