diff --git a/openmp/libomptarget/include/omptarget.h b/openmp/libomptarget/include/omptarget.h --- a/openmp/libomptarget/include/omptarget.h +++ b/openmp/libomptarget/include/omptarget.h @@ -20,14 +20,17 @@ #include -#define OFFLOAD_SUCCESS (0) -#define OFFLOAD_FAIL (~0) - #define OFFLOAD_DEVICE_DEFAULT -1 // Don't format out enums and structs. // clang-format off +/// return error status +enum __tgt_error : int32_t { + OFFLOAD_SUCCESS = 0, + OFFLOAD_FAIL = ~0 +}; + /// Data attributes for each data reference used in an OpenMP target region. enum tgt_map_type { // No flags