message: Bugfix, extern declarations for libomp functions are `extern "C"` declarations
diff: @@ -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;
  