-
-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grpc patch: Fixed NAN/INFINITY definitions to work on Windows 11 SDK. (…
…#5998) * Create fix-NAN-on-Win11.patch * Update xmake.lua * Update xmake.lua * Rename fix-NAN-on-Win11.patch to fix-nan-on-win11.patch * Update xmake.lua * Update fix-nan-on-win11.patch * Update xmake.lua * fix sha * Update fix-nan-on-win11.patch * Update xmake.lua * Update fix-nan-on-win11.patch * Update xmake.lua * Update fix-nan-on-win11.patch * Update xmake.lua * Add protocand see if we should patch cmake * Update xmake.lua * Test if can pass protobuf-cpp root directly * test link * Update xmake.lua * Update xmake.lua * fix macos shared * Support cross-compilation * use openssl3 * limit plat --------- Co-authored-by: star9029 <[email protected]>
- Loading branch information
1 parent
2d2f3b9
commit a852a80
Showing
2 changed files
with
108 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/third_party/upb/upb/message/internal/message.c b/third_party/upb/upb/message/internal/message.c | ||
index 265d30d..afc6e51 100644 | ||
--- a/third_party/upb/upb/message/internal/message.c | ||
+++ b/third_party/upb/upb/message/internal/message.c | ||
@@ -17,9 +17,9 @@ | ||
// Must be last. | ||
#include "upb/port/def.inc" | ||
|
||
-const float kUpb_FltInfinity = INFINITY; | ||
-const double kUpb_Infinity = INFINITY; | ||
-const double kUpb_NaN = NAN; | ||
+const float kUpb_FltInfinity = (float)(1.0 / 0.0); | ||
+const double kUpb_Infinity = 1.0 / 0.0; | ||
+const double kUpb_NaN = 0.0 / 0.0; | ||
|
||
bool UPB_PRIVATE(_upb_Message_Realloc)(struct upb_Message* msg, size_t need, | ||
upb_Arena* a) { | ||
|
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