Skip to content

Commit

Permalink
fixed: compilation with vs2015. issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Nov 30, 2015
1 parent 2dac5ac commit 2c8d36e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/windows/os-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ typedef wchar_t Wchar_t; /* sizeof(wchar_t) = 2 bytes on Windows */
#include <stddef.h>
#include <process.h>
#include <stdint.h>
#include <stdio.h>

typedef SOCKET tcp_socket_t;
#define INVALID_SOCKET_VALUE INVALID_SOCKET
Expand All @@ -84,7 +85,9 @@ typedef _W64 int ssize_t;
#endif

/* Prevent deprecation warnings */
#ifndef snprintf
#define snprintf _snprintf
#endif
#define strnicmp _strnicmp

#if defined(_MSC_VER)
Expand Down

0 comments on commit 2c8d36e

Please sign in to comment.