Skip to content
Open
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
5 changes: 5 additions & 0 deletions c/include/nvtx3/nvtxDetail/nvtxExtPayloadTypeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ typedef void* nvtx_payload_pointer_type;

/* `char8_t` is available as of C++20 or C23 */
#if ((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || (defined(__cplusplus) && __cplusplus >= 201811L)) && !defined(__APPLE__)
/* Fallback for systems where glibc < 2.36 does not define char8_t
* in uchar.h even when the compiler supports C23 (e.g. RHEL 9). */
#ifndef __cpp_char8_t
typedef unsigned char char8_t;
#endif
#define NVTX_HAVE_CHAR8 1
#else
#define NVTX_HAVE_CHAR8 0
Expand Down
Loading