aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/port/port_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/leveldb/port/port_win.h')
-rw-r--r--src/leveldb/port/port_win.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leveldb/port/port_win.h b/src/leveldb/port/port_win.h
index e8bf46ef27..989c15cd91 100644
--- a/src/leveldb/port/port_win.h
+++ b/src/leveldb/port/port_win.h
@@ -32,9 +32,16 @@
#define STORAGE_LEVELDB_PORT_PORT_WIN_H_
#ifdef _MSC_VER
+#if !(_MSC_VER >= 1900)
#define snprintf _snprintf
+#endif
#define close _close
#define fread_unlocked _fread_nolock
+#ifdef _WIN64
+#define ssize_t int64_t
+#else
+#define ssize_t int32_t
+#endif
#endif
#include <string>