Skip to content

Commit 3a89a13

Browse files
committed
include <windows.h> to ensure that sentry.h is modularized correctly
This makes it possible to use this header in Swift Fixes #934
1 parent 164da79 commit 3a89a13

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
@@ -10,13 +10,14 @@
1010

1111
- Maintain crashpad client instance during Native SDK lifecycle. ([#910](https://github.com/getsentry/sentry-native/pull/910))
1212
- Specify correct dependencies for CMake client projects using a system-provided breakpad. ([#926](https://github.com/getsentry/sentry-native/pull/926))
13+
- 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))
1314

1415
**Internal**:
1516

1617
- Updated `crashpad` to 2023-11-24. ([#912](https://github.com/getsentry/sentry-native/pull/912), [crashpad#91](https://github.com/getsentry/crashpad/pull/91))
1718
- 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))
1819
- Remove options memory leak during consent setting. ([#922](https://github.com/getsentry/sentry-native/pull/922))
19-
20+
2021
**Thank you**:
2122

2223
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)