-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1861753 - Patch RNP uniwin.h to handle changes in json-c 0.17. r=…
…kaie #define ssize_t conflicts with typedefs added in json-c 0.17. Replace the defines with typedefs, these result in the same typedefs used in json-c. Patch has been submitted upstream: rnpgp/rnp#2145 Differential Revision: https://phabricator.services.mozilla.com/D193100 --HG-- extra : moz-landing-system : lando
- Loading branch information
Showing
4 changed files
with
32 additions
and
9 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,27 @@ | ||
From d211911a54080b6dd551572c9a7cad5611bfa7bc Mon Sep 17 00:00:00 2001 | ||
From: Rob Lemley <[email protected]> | ||
Date: Wed, 8 Nov 2023 11:23:13 -0500 | ||
Subject: [PATCH] Use typedef for Windows ssize_t. Fixes #2144. | ||
|
||
--- | ||
src/common/uniwin.h | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/common/uniwin.h b/src/common/uniwin.h | ||
index 095c325b..b7e2b52d 100644 | ||
--- a/src/common/uniwin.h | ||
+++ b/src/common/uniwin.h | ||
@@ -35,9 +35,9 @@ | ||
#include <direct.h> /* for _getcwd() and _chdir() */ | ||
|
||
#ifdef _WIN64 | ||
-#define ssize_t __int64 | ||
+typedef __int64 ssize_t; | ||
#else | ||
-#define ssize_t long | ||
+typedef long ssize_t; | ||
#endif | ||
|
||
#define STDIN_FILENO 0 | ||
-- | ||
2.42.1 |
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