Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add __LP64__ define (to solve arch issue with iPhone X) #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion osc/OscOutboundPacketStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion osc/OscReceivedElements.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {}
Expand Down
4 changes: 2 additions & 2 deletions osc/OscTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down