我正在将一些C++代码移植到SHArC处理器上,我注意到SHArC C++编译器没有实现[cstdint](https://en.cppreference.com/w/cpp/header/cstdint)。
造成这种情况的原因是什么,以及如何从原始代码移植大量#include <cstdint>?
发布于 2022-11-11 16:34:12
<cstdint>没有什么困难,一个有效的版本如下所示:
#pragma once /* or include-guard macro */
#include <stdint.h>
namespace std
{
typedef ::uint64_t uint64_t;
typedef ::uint64_fast_t uint64_fast_t;
typedef ::uint64_least_t uint64_least_t;
typedef ::int64_t int64_t;
/* similar for other stdint types */
}https://stackoverflow.com/questions/74404977
复制相似问题