Skip to content

Commit 485b60f

Browse files
committed
better fix for provider.h
Signed-off-by: Daniel A. Steffen <das@apple.com>
1 parent 0eaaab6 commit 485b60f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/internal.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,17 +732,20 @@ extern bool _dispatch_memory_warn;
732732
#endif // HAVE_SYS_GUARDED_H
733733

734734

735-
#if DISPATCH_PURE_C
736-
737735
#if DISPATCH_USE_DTRACE || DISPATCH_USE_DTRACE_INTROSPECTION
738736
typedef struct dispatch_trace_timer_params_s {
739737
int64_t deadline, interval, leeway;
740738
} *dispatch_trace_timer_params_t;
741739

740+
#ifdef __cplusplus
741+
extern "C++" {
742+
#endif
742743
#include "provider.h"
744+
#ifdef __cplusplus
745+
}
746+
#endif
747+
#endif // DISPATCH_USE_DTRACE || DISPATCH_USE_DTRACE_INTROSPECTION
743748
#endif // DISPATCH_USE_DTRACE || DISPATCH_USE_DTRACE_INTROSPECTION
744-
745-
#endif // DISPATCH_PURE_C
746749

747750
#if __has_include(<sys/kdebug.h>)
748751
#include <sys/kdebug.h>

0 commit comments

Comments
 (0)