File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 26
26
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
27
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29
+ // MongoDB customization: includes basetsd.h under Windows where SSIZE_T is declared.
30
+ #include " mongo/platform/basic.h"
31
+
29
32
#include " snappy-internal.h"
30
33
#include " snappy-sinksource.h"
31
34
#include " snappy.h"
74
77
#define SNAPPY_PREFETCH (ptr ) (void )(ptr)
75
78
#endif
76
79
80
+ // MongoDB customization: Fixes missing ssize_t under Windows.
81
+ // Used in IncrementalCopy and IncrementalCopyFastPath.
82
+ // See:
83
+ // https://code.google.com/p/snappy/issues/detail?id=79
84
+ // http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx#SSIZE_T
85
+ // http://src.chromium.org/viewvc/chrome/trunk/src/third_party/snappy/win32/snappy-stubs-public.h
86
+ #if defined(_WIN32)
87
+ typedef SSIZE_T ssize_t ;
88
+ #endif // _WIN32
89
+
77
90
#include < algorithm>
78
91
#include < array>
79
92
#include < cstddef>
You can’t perform that action at this time.
0 commit comments