Skip to content

Commit

Permalink
fix: Move header reference out of extern C (#3538)
Browse files Browse the repository at this point in the history
Removing header references from extern C because they are causing compile errors with Android Studio and flutter.
  • Loading branch information
brustolin committed Jan 29, 2024
1 parent 50bb751 commit 008799d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- Move header reference out of "extern C" (#3538)

## 8.19.0

### Features
Expand Down Expand Up @@ -30,7 +36,6 @@
- Fix a race condition in SentryTracer (#3523)
- App start ends when first frame is drawn when performanceV2 is enabled (#3530)
- Use correct rendered frames timestamp for TTID/TTFD and app start (#3531)

- Missing transactions when not calling `reportFullyDisplayed` (#3477)

## 8.17.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
#ifndef HDR_SentryCrashMachineContext_h
#define HDR_SentryCrashMachineContext_h

#ifdef __cplusplus
extern "C" {
#endif

#include "SentryCrashThread.h"
#include <mach/mach.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

/** Suspend the runtime environment.
*/
void sentrycrashmc_suspendEnvironment(
Expand Down
9 changes: 4 additions & 5 deletions Sources/SentryCrash/Recording/Tools/SentryCrashStackCursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@
#ifndef SentryCrashStackCursor_h
#define SentryCrashStackCursor_h

#ifdef __cplusplus
extern "C" {
#endif

#include "SentryCrashMachineContext.h"

#include <stdbool.h>
#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif

#define SentryCrashSC_CONTEXT_SIZE 100

/** Point at which to give up walking a stack and consider it a stack overflow.
Expand Down
6 changes: 3 additions & 3 deletions Sources/SentryCrash/Recording/Tools/SentryCrashThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
#ifndef HDR_SentryCrashThread_h
#define HDR_SentryCrashThread_h

#include <stdbool.h>
#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>
#include <sys/types.h>

typedef uintptr_t SentryCrashThread;

/** Get a thread's name. Internally, a thread name will
Expand Down

0 comments on commit 008799d

Please sign in to comment.