Skip to content

[OMPD] Runtime Entry Point functions for OMPD in libomp.so need C linkage as per standard. #79246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openmp/runtime/src/include/omp-tools.h.var
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ typedef enum kmp_mutex_impl_t {
* definitions generated from spec
*****************************************************************************/

#if defined(__cplusplus)
extern "C" {
#endif

typedef enum ompt_callbacks_t {
ompt_callback_thread_begin = 1,
ompt_callback_thread_end = 2,
Expand Down Expand Up @@ -1414,4 +1418,8 @@ typedef ompt_record_ompt_t *(*ompt_get_record_ompt_t) (

#define ompd_segment_none 0

#if defined(__cplusplus)
} // extern "C"
#endif

#endif /* __OMPT__ */