Add cstdint header for gcc-15 compatibility

Common C++ headers (like <memory>) in GCC 15.0.0 (combined with libstdc++) don't transitively include uint64_t anymore.

Minimal reproducer: https://godbolt.org/z/dqGbnG8bY

Porting: https://github.com/ROCm/rocm_smi_lib/pull/198
Closes: https://github.com/ROCm/rocm_smi_lib/issues/191

Change-Id: I2786e968c107a78104c43c4c474b7f65eaf88c0a
Cette révision appartient à :
Harkirat Gill
2024-09-23 14:55:05 -04:00
révisé par Harkirat Gill
Parent 35496cabc4
révision c61ab4fa28
+1
Voir le fichier
@@ -45,6 +45,7 @@
#ifndef INCLUDE_ROCM_SMI_ROCM_SMI_COMMON_H_
#define INCLUDE_ROCM_SMI_ROCM_SMI_COMMON_H_
#include <cstdint>
#include <memory>
#include <map>
#include <vector>