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 3bd22e5
Show file tree
Hide file tree
Showing 2 changed files with 4 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
4 changes: 3 additions & 1 deletion src/support/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
#include <winsock2.h>
#include <ws2tcpip.h>

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

#ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib")
#endif
Expand Down

0 comments on commit 3bd22e5

Please sign in to comment.