summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openmp/libomptarget/src/private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/openmp/libomptarget/src/private.h b/openmp/libomptarget/src/private.h
index 8aa78d050d4..7bdadc01375 100644
--- a/openmp/libomptarget/src/private.h
+++ b/openmp/libomptarget/src/private.h
@@ -34,8 +34,14 @@ extern int target(int64_t device_id, void *host_ptr, int32_t arg_num,
extern int CheckDeviceAndCtors(int64_t device_id);
// Implemented in libomp, they are called from within __tgt_* functions.
+#ifdef __cplusplus
+extern "C" {
+#endif
int omp_get_default_device(void) __attribute__((weak));
int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak));
+#ifdef __cplusplus
+}
+#endif
#ifdef OMPTARGET_DEBUG
extern int DebugLevel;
OpenPOWER on IntegriCloud