diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h index 12393b6..f0098d1 100644 --- a/snappy-stubs-internal.h +++ b/snappy-stubs-internal.h @@ -486,6 +486,9 @@ inline char* string_as_array(string* str) { return str->empty() ? NULL : &*str->begin(); } +// Windows doesn't have ssize_t, so create one in the namespace snappy +typedef std::make_signed::type ssize_t; + } // namespace snappy #endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_INTERNAL_H_