Skip to content
Snippets Groups Projects
Commit 3ad6f8d8 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by gerrit2
Browse files

build: provide ssize_t definition for native Windows builds

- defines ssize_t in ice_socket.h and utf8_utils.cpp for
  Microsofts compiler.

Change-Id: I46131f613a35cabae9df7749221ba2f30d7fd888
Tuleap: #790
parent 7f1d4f70
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
#include <memory> #include <memory>
#include <functional> #include <functional>
#if defined(_MSC_VER)
#include <BaseTsd.h>
using ssize_t = SSIZE_T;
#endif
namespace ring { namespace ring {
class IceTransport; class IceTransport;
......
...@@ -25,6 +25,11 @@ ...@@ -25,6 +25,11 @@
#include <cassert> #include <cassert>
#include "utf8_utils.h" #include "utf8_utils.h"
#if defined(_MSC_VER)
#include <BaseTsd.h>
using ssize_t = SSIZE_T;
#endif
/* /*
* The LIKELY and UNLIKELY macros let the programmer give hints to * The LIKELY and UNLIKELY macros let the programmer give hints to
* the compiler about the expected result of an expression. Some compilers * the compiler about the expected result of an expression. Some compilers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment