Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use typedef for Windows ssize_t. Fixes #2144. #2145

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

jfx2006
Copy link
Contributor

@jfx2006 jfx2006 commented Nov 8, 2023

Fixes #2144

@jfx2006
Copy link
Contributor Author

jfx2006 commented Nov 8, 2023

json-c 0.17 uses in json_inttypes.h:

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

Which expands to the same thing. Msys2 builds won't like that I'm guessing.

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d934fa9) 76.98% compared to head (6c84cbc) 76.98%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2145      +/-   ##
==========================================
- Coverage   76.98%   76.98%   -0.01%     
==========================================
  Files         194      194              
  Lines       37074    37074              
==========================================
- Hits        28542    28541       -1     
- Misses       8532     8533       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antonsviridenko
Copy link
Contributor

Windows-native tests fail for some reason

The following tests FAILED:
	253 - cli_tests-Encryption (Failed)

@jfx2006
Copy link
Contributor Author

jfx2006 commented Nov 9, 2023

Windows-native tests fail for some reason

Is that perhaps related to what's going on #2139?

@ni4
Copy link
Contributor

ni4 commented Nov 11, 2023

Windows-native tests fail for some reason

Is that perhaps related to what's going on #2139?

Yeah, that must be the reason. I'm debugging that issue.

moz-v2v-gh pushed a commit to mozilla/releases-comm-central that referenced this pull request Nov 30, 2023
…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
@ni4
Copy link
Contributor

ni4 commented Dec 6, 2023

@jfx2006 PR #2148 is merged, fixing the crash in CI. Could you please rebase on main branch?

Copy link
Contributor

@ni4 ni4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@maxirmx maxirmx merged commit 60ff581 into rnpgp:main Dec 8, 2023
112 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows build fails when using json-c 0.17
4 participants