|
57 | 57 | #include <openvpn/transport/gremlin.hpp> |
58 | 58 | #endif |
59 | 59 |
|
60 | | -#if defined(OPENVPN_PLATFORM_ANDROID) |
| 60 | +#ifdef OPENVPN_PLATFORM_ANDROID |
61 | 61 | #include <openvpn/client/cliemuexr.hpp> |
62 | 62 | #endif |
63 | 63 |
|
64 | | -#if defined(OPENVPN_EXTERNAL_TRANSPORT_FACTORY) |
| 64 | +#ifdef OPENVPN_EXTERNAL_TRANSPORT_FACTORY |
65 | 65 | #include <openvpn/transport/client/extern/config.hpp> |
66 | 66 | #include <openvpn/transport/client/extern/fw.hpp> |
67 | 67 | #endif |
68 | 68 |
|
69 | | -#if defined(OPENVPN_EXTERNAL_TUN_FACTORY) |
| 69 | +#ifdef OPENVPN_EXTERNAL_TUN_FACTORY |
70 | 70 | // requires that client implements ExternalTun::Factory::new_tun_factory |
71 | 71 | #include <openvpn/tun/extern/config.hpp> |
72 | 72 | #elif defined(USE_TUN_BUILDER) |
@@ -180,15 +180,15 @@ class ClientOptions : public RC<thread_unsafe_refcount> |
180 | 180 | ReconnectNotify *reconnect_notify = nullptr; |
181 | 181 | RemoteList::RemoteOverride *remote_override = nullptr; |
182 | 182 |
|
183 | | -#if defined(USE_TUN_BUILDER) |
| 183 | +#ifdef USE_TUN_BUILDER |
184 | 184 | TunBuilderBase *builder = nullptr; |
185 | 185 | #endif |
186 | 186 |
|
187 | | -#if defined(OPENVPN_EXTERNAL_TUN_FACTORY) |
| 187 | +#ifdef OPENVPN_EXTERNAL_TUN_FACTORY |
188 | 188 | ExternalTun::Factory *extern_tun_factory = nullptr; |
189 | 189 | #endif |
190 | 190 |
|
191 | | -#if defined(OPENVPN_EXTERNAL_TRANSPORT_FACTORY) |
| 191 | +#ifdef OPENVPN_EXTERNAL_TRANSPORT_FACTORY |
192 | 192 | ExternalTransport::Factory *extern_transport_factory = nullptr; |
193 | 193 | #endif |
194 | 194 | }; |
@@ -360,15 +360,15 @@ class ClientOptions : public RC<thread_unsafe_refcount> |
360 | 360 | tunconf.tun_prop.remote_list = remote_list; |
361 | 361 | tunconf.stop = config.stop; |
362 | 362 | tunconf.allow_local_dns_resolvers = config.clientconf.allowLocalDnsResolvers; |
363 | | -#if defined(OPENVPN_PLATFORM_WIN) |
| 363 | +#ifdef OPENVPN_PLATFORM_WIN |
364 | 364 | if (config.clientconf.tunPersist) |
365 | 365 | tunconf.tun_persist.reset(new TunWin::DcoTunPersist(true, TunWrapObjRetain::NO_RETAIN_NO_REPLACE, nullptr)); |
366 | 366 | #endif |
367 | 367 | tun_factory = dco->new_tun_factory(tunconf, opt); |
368 | 368 | } |
369 | 369 | else |
370 | 370 | { |
371 | | -#if defined(OPENVPN_EXTERNAL_TUN_FACTORY) |
| 371 | +#ifdef OPENVPN_EXTERNAL_TUN_FACTORY |
372 | 372 | { |
373 | 373 | ExternalTun::Config tunconf; |
374 | 374 | tunconf.tun_prop.layer = layer; |
@@ -598,7 +598,7 @@ class ClientOptions : public RC<thread_unsafe_refcount> |
598 | 598 | * string property (if applicable) */ |
599 | 599 | static std::tuple<bool, std::string> check_dco_compatibility(const ClientAPI::ConfigCommon &config, const OptionList &opt) |
600 | 600 | { |
601 | | -#if defined(ENABLE_KOVPN) |
| 601 | +#ifdef ENABLE_KOVPN |
602 | 602 | // only care about dco/dco-win |
603 | 603 | return std::make_tuple(true, ""); |
604 | 604 | #else |
|
0 commit comments