-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
include <windows.h> to ensure that sentry.h is modularized correctly #935
Conversation
@Swatinem What do you think about this change? I see you previously dropped the use of |
The problem is that @supervacuus hopefully knows more about this, and can also guide us to a solution here. Lets wait a bunch more days for people to return from winter break :-) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #935 +/- ##
=======================================
Coverage 82.65% 82.65%
=======================================
Files 53 53
Lines 7376 7376
Branches 1186 1186
=======================================
Hits 6097 6097
Misses 1171 1171
Partials 108 108 |
@Swatinem totally understandable that Windows.h is pretty broad I think that the documentation does clearly state that you should use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A short check with /showIncludes
reveals that we indirectly include windows.h
via rpc.h
anyway, so I see no reason to block this. This change is not only relevant to making the Native SDK work with clang modules but also makes explicit that we depend on windows.h
.
There is currently no way around this without hiding the platform-specific context types in the header via some abstraction, and this is not a priority given that we still need to expose and track machine- and platform-dependent interfaces somewhere (but it might be the right choice down the road).
So, LGTM, but please add a changelog entry. Thanks!
This makes it possible to use this header in Swift Fixes getsentry#934
Thanks, I updated the release notes! |
This makes it possible to use this header in Swift
Fixes #934