aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2010-01-02 20:04:20 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2010-01-02 20:04:20 +0000
commit952d59a23d50eccac0fd3bf332e1802905efcd33 (patch)
tree6814b333224a28e7b4cbd79a1ca2108d28a3863c /net
parent95c9d565f8df5c8468d3fecd685ac0baea683b48 (diff)
Changed MSW to _WIN32
svn path=/trunk/externals/mrpeach/; revision=12867
Diffstat (limited to 'net')
-rw-r--r--net/tcpclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tcpclient.c b/net/tcpclient.c
index 21729db..433005c 100644
--- a/net/tcpclient.c
+++ b/net/tcpclient.c
@@ -343,7 +343,7 @@ static int tcpclient_get_socket_send_buf_size(t_tcpclient *x)
int optVal = 0;
int optLen = sizeof(int);
t_atom output_atom;
-#ifdef MSW
+#ifdef _WIN32
if (getsockopt(x->x_fd, SOL_SOCKET, SO_SNDBUF, (char*)&optVal, &optLen) == SOCKET_ERROR)
post("%_get_socket_send_buf_size: getsockopt returned %d\n", objName, WSAGetLastError());
#else
@@ -360,7 +360,7 @@ static int tcpclient_set_socket_send_buf_size(t_tcpclient *x, int size)
{
int optVal = size;
int optLen = sizeof(int);
-#ifdef MSW
+#ifdef _WIN32
if (setsockopt(x->x_fd, SOL_SOCKET, SO_SNDBUF, (char*)&optVal, optLen) == SOCKET_ERROR)
{
post("%s_set_socket_send_buf_size: setsockopt returned %d\n", objName, WSAGetLastError());