From 8eef3eb5823dc8acf091d99e924cdb8285449fdc Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 2 Oct 2000 18:55:26 +0000 Subject: [PATCH] MSVC++ tweaks. --- simgear/io/sg_socket.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/io/sg_socket.cxx b/simgear/io/sg_socket.cxx index 6336e76b..288a4dd5 100644 --- a/simgear/io/sg_socket.cxx +++ b/simgear/io/sg_socket.cxx @@ -158,7 +158,7 @@ SGSocket::SocketType SGSocket::make_client_socket () { // Wrapper functions size_t SGSocket::readsocket( int fd, void *buf, size_t count ) { #if defined(_MSC_VER) - return ::recv( fd, buf, count, 0 ); + return ::recv( fd, (char *)buf, count, 0 ); #else return ::read( fd, buf, count ); #endif @@ -166,7 +166,7 @@ size_t SGSocket::readsocket( int fd, void *buf, size_t count ) { size_t SGSocket::writesocket( int fd, const void *buf, size_t count ) { #if defined(_MSC_VER) - return ::send( fd, buf, count, 0 ); + return ::send( fd, (const char*)buf, count, 0 ); #else return ::write( fd, buf, count ); #endif