File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ static uint32 UNALIGNED_LOAD32(const char *p) {
102102#endif
103103
104104#if !defined(LIKELY)
105- #if HAVE_BUILTIN_EXPECT
105+ #if HAVE_BUILTIN_EXPECT && !defined(_MSC_VER)
106106#define LIKELY (x ) (__builtin_expect(!!(x), 1 ))
107107#else
108108#define LIKELY (x ) (x)
Original file line number Diff line number Diff line change 11#pragma once
22#include < memory>
3+ #include < string>
34
45namespace NJamSpell {
56
Original file line number Diff line number Diff line change 1010
1111#include < contrib/cityhash/city.h>
1212
13+ #ifndef ssize_t
14+ #define ssize_t int
15+ #endif
1316
1417namespace NJamSpell {
1518
@@ -21,7 +24,7 @@ class MemStream: public std::basic_streambuf<char> {
2124 , Pos(0 )
2225 {
2326 }
24- long xsputn (const char * s, long n) override {
27+ long xsputn (const char * s, long n) {
2528 if (n <= 0 ) {
2629 return n;
2730 }
You can’t perform that action at this time.
0 commit comments