Skip to content

Commit 17c153a

Browse files
committed
better fix for provider.h
Signed-off-by: Daniel A. Steffen <[email protected]>
1 parent 0eaaab6 commit 17c153a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/internal.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,18 +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
743747
#endif // DISPATCH_USE_DTRACE || DISPATCH_USE_DTRACE_INTROSPECTION
744748

745-
#endif // DISPATCH_PURE_C
746-
747749
#if __has_include(<sys/kdebug.h>)
748750
#include <sys/kdebug.h>
749751
#ifndef DBG_DISPATCH

0 commit comments

Comments
 (0)