From 5bb63c55229ba1088a3e9d5c5e2e5819ddc70e24 Mon Sep 17 00:00:00 2001 From: Vijay Vikram Singh Date: Wed, 11 Dec 2019 14:15:59 -0800 Subject: [PATCH] fix(ios): proper macro used for wrapping code (#11389) --- iphone/Classes/TiNetworkSocketProxy.h | 2 +- iphone/Classes/TiNetworkSocketProxy.m | 2 +- iphone/Classes/TiNetworkSocketTCPProxy.h | 2 +- iphone/Classes/TiNetworkSocketTCPProxy.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iphone/Classes/TiNetworkSocketProxy.h b/iphone/Classes/TiNetworkSocketProxy.h index 5a82df13d7a..540b6d1dc7e 100644 --- a/iphone/Classes/TiNetworkSocketProxy.h +++ b/iphone/Classes/TiNetworkSocketProxy.h @@ -7,7 +7,7 @@ #import #import -#ifdef USE_TI_NETWORKSOCKET +#if defined(USE_TI_NETWORKSOCKET) || (defined(USE_TI_NETWORK)) typedef enum { SOCKET_INITIALIZED = 1 << 0, SOCKET_CONNECTED = 1 << 1, diff --git a/iphone/Classes/TiNetworkSocketProxy.m b/iphone/Classes/TiNetworkSocketProxy.m index b394ba63725..ca824e82485 100644 --- a/iphone/Classes/TiNetworkSocketProxy.m +++ b/iphone/Classes/TiNetworkSocketProxy.m @@ -8,7 +8,7 @@ #import "TiNetworkSocketTCPProxy.h" #import -#ifdef USE_TI_NETWORKSOCKET +#if defined(USE_TI_NETWORKSOCKET) || (defined(USE_TI_NETWORK)) @implementation TiNetworkSocketProxy - (id)createTCP:(id)args diff --git a/iphone/Classes/TiNetworkSocketTCPProxy.h b/iphone/Classes/TiNetworkSocketTCPProxy.h index 28a61d8fc2a..671be96e421 100644 --- a/iphone/Classes/TiNetworkSocketTCPProxy.h +++ b/iphone/Classes/TiNetworkSocketTCPProxy.h @@ -10,7 +10,7 @@ // * Explicit synchronization (no more conditions, flags, or race conditons!) // * Maybe even synchronize with the context itself (when TIMOB-6990 complete) -#ifdef USE_TI_NETWORKSOCKET +#if defined(USE_TI_NETWORKSOCKET) || (defined(USE_TI_NETWORK)) #import "AsyncSocket.h" #import "TiNetworkSocketProxy.h" #import diff --git a/iphone/Classes/TiNetworkSocketTCPProxy.m b/iphone/Classes/TiNetworkSocketTCPProxy.m index 6685a8847e0..986290ace2a 100644 --- a/iphone/Classes/TiNetworkSocketTCPProxy.m +++ b/iphone/Classes/TiNetworkSocketTCPProxy.m @@ -4,7 +4,7 @@ * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ -#ifdef USE_TI_NETWORKSOCKET +#if defined(USE_TI_NETWORKSOCKET) || (defined(USE_TI_NETWORK)) #import "TiNetworkSocketTCPProxy.h" #import "NetworkModule.h" #import