Skip to content

Commit

Permalink
Fix building with newer versions of Clang.
Browse files Browse the repository at this point in the history
Clang has started caring that templates have C++ linkage. This just
rearranges where the extern C is specified so that the C++ decls are all
outside of the extern C block.

Issue: PLCR-546
  • Loading branch information
sirg3 committed May 21, 2014
1 parent f7f69d4 commit ad40dde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Source/PLCrashAsyncImageList.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
#ifndef PLCRASH_ASYNC_IMAGE_LIST_H
#define PLCRASH_ASYNC_IMAGE_LIST_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <libkern/OSAtomic.h>
#include <stdbool.h>
Expand All @@ -48,6 +44,10 @@ extern "C" {
#include "PLCrashAsyncLinkedList.hpp"
#endif

#ifdef __cplusplus
extern "C" {
#endif

typedef struct plcrash_async_image plcrash_async_image_t;

/**
Expand Down
8 changes: 4 additions & 4 deletions Source/PLCrashFrameWalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
#ifndef PLCRASH_FRAMEWALKER_H
#define PLCRASH_FRAMEWALKER_H

#ifdef __cplusplus
extern "C" {
#endif

#import <sys/ucontext.h>
#import <pthread.h>

Expand All @@ -59,6 +55,10 @@ extern "C" {
#include <mach/arm/thread_state.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

/**
* @internal
* @defgroup plframe_backtrace Backtrace Frame Walker
Expand Down

0 comments on commit ad40dde

Please sign in to comment.