[Openmp-commits] [openmp] Replace some C headers with C++ ones (PR #82697)
Daniel Martinez via Openmp-commits
openmp-commits at lists.llvm.org
Thu Feb 22 14:31:36 PST 2024
https://github.com/Calandracas606 updated https://github.com/llvm/llvm-project/pull/82697
>From 09ebcabcd9db06c4e37519a97ab37bfc48d9d3cd Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielpedromartinez at duck.com>
Date: Thu, 22 Feb 2024 17:03:35 -0500
Subject: [PATCH] Replace some C headers with C++ ones
---
openmp/libomptarget/include/Shared/SourceInfo.h | 2 +-
openmp/libomptarget/include/omptarget.h | 3 +--
openmp/libomptarget/plugins-nextgen/common/include/RPC.h | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/openmp/libomptarget/include/Shared/SourceInfo.h b/openmp/libomptarget/include/Shared/SourceInfo.h
index 711f06a04d017f..63488ff0e8cac2 100644
--- a/openmp/libomptarget/include/Shared/SourceInfo.h
+++ b/openmp/libomptarget/include/Shared/SourceInfo.h
@@ -13,7 +13,7 @@
#ifndef OMPTARGET_SHARED_SOURCE_INFO_H
#define OMPTARGET_SHARED_SOURCE_INFO_H
-#include <stdint.h>
+#include <cstdint>
#include <string>
#ifdef _WIN32
diff --git a/openmp/libomptarget/include/omptarget.h b/openmp/libomptarget/include/omptarget.h
index 9a2bd1340e3b4d..8e0ccf191839da 100644
--- a/openmp/libomptarget/include/omptarget.h
+++ b/openmp/libomptarget/include/omptarget.h
@@ -20,11 +20,10 @@
#include "OpenMP/InternalTypes.h"
+#include <cstddef>
#include <cstdint>
#include <deque>
#include <functional>
-#include <stddef.h>
-#include <stdint.h>
#include <type_traits>
#include "llvm/ADT/SmallVector.h"
diff --git a/openmp/libomptarget/plugins-nextgen/common/include/RPC.h b/openmp/libomptarget/plugins-nextgen/common/include/RPC.h
index e1ebcb20e26449..2e39b3f299c888 100644
--- a/openmp/libomptarget/plugins-nextgen/common/include/RPC.h
+++ b/openmp/libomptarget/plugins-nextgen/common/include/RPC.h
@@ -18,7 +18,7 @@
#include "llvm/Support/Error.h"
-#include <stdint.h>
+#include <cstdint>
namespace llvm::omp::target {
namespace plugin {
More information about the Openmp-commits
mailing list