From beefe720a126084f4d0ff52213ed6d78901d3fc0 Mon Sep 17 00:00:00 2001 From: "D. Fober" Date: Mon, 15 Oct 2018 15:17:32 +0200 Subject: [PATCH] add __LP64__ define (to solve arch issue with iPhone X) --- osc/OscOutboundPacketStream.h | 2 +- osc/OscReceivedElements.h | 2 +- osc/OscTypes.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osc/OscOutboundPacketStream.h b/osc/OscOutboundPacketStream.h index 3cc2835..2ca8517 100644 --- a/osc/OscOutboundPacketStream.h +++ b/osc/OscOutboundPacketStream.h @@ -105,7 +105,7 @@ class OutboundPacketStream{ OutboundPacketStream& operator<<( const InfinitumType& rhs ); OutboundPacketStream& operator<<( int32 rhs ); -#if !(defined(__x86_64__) || defined(_M_X64)) +#if !(defined(__x86_64__) || defined(_M_X64) || defined(__LP64__)) OutboundPacketStream& operator<<( int rhs ) { *this << (int32)rhs; return *this; } #endif diff --git a/osc/OscReceivedElements.h b/osc/OscReceivedElements.h index b6205f3..f0604dd 100644 --- a/osc/OscReceivedElements.h +++ b/osc/OscReceivedElements.h @@ -100,7 +100,7 @@ class ReceivedPacket{ : contents_( contents ) , size_( ValidateSize( (osc_bundle_element_size_t)size ) ) {} -#if !(defined(__x86_64__) || defined(_M_X64)) +#if !(defined(__x86_64__) || defined(_M_X64) || defined(__LP64__)) ReceivedPacket( const char *contents, int size ) : contents_( contents ) , size_( ValidateSize( (osc_bundle_element_size_t)size ) ) {} diff --git a/osc/OscTypes.h b/osc/OscTypes.h index 6100201..a29c5f3 100644 --- a/osc/OscTypes.h +++ b/osc/OscTypes.h @@ -47,7 +47,7 @@ namespace osc{ typedef __int64 int64; typedef unsigned __int64 uint64; -#elif defined(__x86_64__) || defined(_M_X64) +#elif defined(__x86_64__) || defined(_M_X64) || defined(__LP64__) typedef long int64; typedef unsigned long uint64; @@ -61,7 +61,7 @@ typedef unsigned long long uint64; -#if defined(__x86_64__) || defined(_M_X64) +#if defined(__x86_64__) || defined(_M_X64) || defined(__LP64__) typedef signed int int32; typedef unsigned int uint32;