This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [m67] patch leveldb to not redefine ssize_t (#682)
- Loading branch information
1 parent
00475d4
commit 5d57adf
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/third_party/leveldatabase/port/port_chromium.h b/third_party/leveldatabase/port/port_chromium.h | ||
index a7c449eba19c..acbce7efd582 100644 | ||
--- a/third_party/leveldatabase/port/port_chromium.h | ||
+++ b/third_party/leveldatabase/port/port_chromium.h | ||
@@ -26,7 +26,11 @@ | ||
#endif | ||
|
||
#if defined(OS_WIN) | ||
+# if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) | ||
typedef SSIZE_T ssize_t; | ||
+# define _SSIZE_T_ | ||
+# define _SSIZE_T_DEFINED | ||
+# endif | ||
#endif | ||
|
||
namespace leveldb { |