From 90a3f0a62018d46282a933048a36479fa19feadf Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 3 May 2014 11:03:04 -0700 Subject: [PATCH] Define ssize_t on Windows. --- test/gtest-extra.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/gtest-extra.cc b/test/gtest-extra.cc index 74628083..a1973e33 100644 --- a/test/gtest-extra.cc +++ b/test/gtest-extra.cc @@ -42,6 +42,10 @@ # define O_TRUNC _O_TRUNC # define S_IRUSR _S_IREAD # define S_IWUSR _S_IWRITE + +// The read function is defined as returning int on Windows. +typedef int ssize_t; + #endif // _WIN32 // Retries the expression while it evaluates to -1 and error equals to EINTR.