Skip to content

Commit b8fadf9

Browse files
authored
include <windows.h> to ensure that sentry.h is modularized correctly (#935)
1 parent 8c748b4 commit b8fadf9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
- Maintain `crashpad` client instance during Native SDK lifecycle. ([#910](https://github.com/getsentry/sentry-native/pull/910))
1313
- Specify correct dependencies for CMake client projects using a system-provided breakpad. ([#926](https://github.com/getsentry/sentry-native/pull/926))
14+
- Correct the Windows header include used by `sentry.h`, which fixes the build of [Swift bindings](https://github.com/thebrowsercompany/swift-sentry). ([#935](https://github.com/getsentry/sentry-native/pull/935))
1415

1516
**Internal**:
1617

1718
- Updated `crashpad` to 2023-11-24. ([#912](https://github.com/getsentry/sentry-native/pull/912), [crashpad#91](https://github.com/getsentry/crashpad/pull/91))
1819
- Fixing `crashpad` build for Windows on ARM64. ([#919](https://github.com/getsentry/sentry-native/pull/919), [crashpad#90](https://github.com/getsentry/crashpad/pull/90), [crashpad#92](https://github.com/getsentry/crashpad/pull/92), [crashpad#93](https://github.com/getsentry/crashpad/pull/93), [crashpad#94](https://github.com/getsentry/crashpad/pull/94))
1920
- Remove options memory leak during consent setting. ([#922](https://github.com/getsentry/sentry-native/pull/922))
20-
21+
2122
**Thank you**:
2223

2324
Features, fixes and improvements in this release have been contributed by:

include/sentry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ extern "C" {
9090

9191
/* context type dependencies */
9292
#ifdef _WIN32
93-
# include <wtypes.h>
93+
# include <windows.h>
9494
#else
9595
# include <signal.h>
9696
#endif

0 commit comments

Comments
 (0)