diff --git a/openmp/libomptarget/include/OmptCallback.h b/openmp/libomptarget/include/OmptCallback.h --- a/openmp/libomptarget/include/OmptCallback.h +++ b/openmp/libomptarget/include/OmptCallback.h @@ -18,6 +18,8 @@ #include "omp-tools.h" +#pragma push_macro("DEBUG_PREFIX") +#undef DEBUG_PREFIX #define DEBUG_PREFIX "OMPT" #define FOREACH_OMPT_TARGET_CALLBACK(macro) \ @@ -82,4 +84,6 @@ #endif // OMPT_SUPPORT +#pragma pop_macro("DEBUG_PREFIX") + #endif // _OMPTCALLBACK_H diff --git a/openmp/libomptarget/include/OmptConnector.h b/openmp/libomptarget/include/OmptConnector.h --- a/openmp/libomptarget/include/OmptConnector.h +++ b/openmp/libomptarget/include/OmptConnector.h @@ -27,8 +27,9 @@ #include "Debug.h" #include "omptarget.h" +#pragma push_macro("DEBUG_PREFIX") +#undef DEBUG_PREFIX #define DEBUG_PREFIX "OMPT" -#define LIBOMPTARGET_STRINGIFY(s) #s /// Type for the function to be invoked for connecting two libraries. typedef void (*OmptConnectRtnTy)(ompt_start_tool_result_t *result); @@ -103,4 +104,6 @@ #endif // OMPT_SUPPORT +#pragma pop_macro("DEBUG_PREFIX") + #endif // _OMPTCONNECTOR_H