Skip to content

Commit

Permalink
Fix ssize_t for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed May 5, 2022
1 parent eae836c commit f5e78fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/runtime/rpc/rpc_channel_logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <memory>
#include <utility>

#include "../../support/socket.h"
#include "../minrpc/minrpc_server_logging.h"
#include "rpc_channel.h"

Expand Down
3 changes: 2 additions & 1 deletion src/support/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
#define NOMINMAX
#endif

#include <BaseTsd.h>
#include <winsock2.h>
#include <ws2tcpip.h>
using ssize_t = SSIZE_T;

using ssize_t = int;
#ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib")
#endif
Expand Down

0 comments on commit f5e78fd

Please sign in to comment.