Unverified Commit 3daf4d40 authored by Aaron Wyatt's avatar Aaron Wyatt Committed by GitHub
Browse files

Fix OSX defines in UdpDataProtocol

Removed an extra _ in a couple of defines.
parent 5217d5e3
......@@ -51,7 +51,7 @@
#include <winsock2.h> //cc need SD_SEND
#include <ws2tcpip.h> // for IPv6
#endif
#if defined (__LINUX__) || (__MAC__OSX__)
#if defined (__LINUX__) || (__MAC_OSX__)
#include <sys/socket.h> // for POSIX Sockets
#endif
......@@ -101,7 +101,7 @@ UdpDataProtocol::~UdpDataProtocol()
void UdpDataProtocol::setPeerAddress(const char* peerHostOrIP)
{
// Get DNS Address
#if defined (__LINUX__) || (__MAC__OSX__)
#if defined (__LINUX__) || (__MAC_OSX__)
//Don't make the following code conditional on windows
//(Addresses a weird timing bug when in hub client mode)
if (!mPeerAddress.setAddress(peerHostOrIP)) {
......@@ -113,7 +113,7 @@ void UdpDataProtocol::setPeerAddress(const char* peerHostOrIP)
}
//cout << "UdpDataProtocol::setPeerAddress IP Address Number: "
// << mPeerAddress.toString().toStdString() << endl;
#if defined (__LINUX__) || (__MAC__OSX__)
#if defined (__LINUX__) || (__MAC_OSX__)
}
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment