Skip to content

Commit

Permalink
Merge pull request #3793 from tgfrerer/fix-win32-osc
Browse files Browse the repository at this point in the history
Fixes compiler errors for win32 version of ofxOSC.
  • Loading branch information
ofTheo committed May 29, 2015
2 parents ec9f59f + b4e0daf commit df80bbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/ofxOsc/libs/oscpack/src/ip/win32/UdpSocket.cpp
Expand Up @@ -114,8 +114,8 @@ class UdpSocket::Implementation{
}

if( UdpSocket::maxBufferSize > 0 ){
setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, &UdpSocket::maxBufferSize, sizeof(UdpSocket::maxBufferSize));
setsockopt(socket_, SOL_SOCKET, SO_RCVBUF, &UdpSocket::maxBufferSize, sizeof(UdpSocket::maxBufferSize));
setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, (const char*)&UdpSocket::maxBufferSize, sizeof(UdpSocket::maxBufferSize));
setsockopt(socket_, SOL_SOCKET, SO_RCVBUF, (const char*)&UdpSocket::maxBufferSize, sizeof(UdpSocket::maxBufferSize));
}

std::memset( &sendToAddr_, 0, sizeof(sendToAddr_) );
Expand Down Expand Up @@ -452,7 +452,7 @@ class SocketReceiveMultiplexer::Implementation{
maxSize = 4098;
}
const unsigned long MAX_BUFFER_SIZE = maxSize;
data = new char[ MAX_BUFFER_SIZE ];
char * data = new char[ MAX_BUFFER_SIZE ];
IpEndpointName remoteEndpoint;

while( !break_ ){
Expand Down

0 comments on commit df80bbd

Please sign in to comment.