-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
We recently moved to XCode 6 / iOS 8 and ran into a problem building WebSocket++. We're on version 0.3.0-alpha4 of the library so it's a bit old.
The issue seems to be that WebSocket++ defines 64 bit versions of ntohtll and htonll. And they don't compile against iOS 8.
websocketpp/common/network.hpp
ntohtll, htonll
I get a compilation error saying "Expected (" on the ntohtll method name.
Deleting the WebSocket++ implementations and using Apple's ntohl & htonl caused runtime errors, so that was not a solution. Instead I just renamed ntohtll -> ntohtllex and htonll -> htonllex in my own branch.
You may want to do some ntohtll, htonll detection in the header before defining your own.