ValveSoftware / Fossilize

A serialization format for various persistent Vulkan object types.
MIT License
584 stars 47 forks source link

Missing cstdint include #244

Closed Venemo closed 6 months ago

Venemo commented 6 months ago

I get the following error when trying to build the latest version of Fossilize:

In file included from /home/Timur/Projects/valve/Fossilize/path.cpp:23:
/home/Timur/Projects/valve/Fossilize/path.hpp:51:44: error: ‘uint64_t’ has not been declared
   51 | bool get_mtime_us(const std::string &path, uint64_t &mtime_us);
      |                                            ^~~~~~~~
[ 86%] Built target SPIRV-Tools-opt
/home/Timur/Projects/valve/Fossilize/path.cpp:401:44: error: ‘uint64_t’ has not been declared
  401 | bool get_mtime_us(const std::string &path, uint64_t &mtime_us)
      |                                            ^~~~~~~~

This is solved by:

#include <cstdint>

in path.hpp

HansKristian-Work commented 6 months ago

Sure you have the latest version?

#pragma once
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
Venemo commented 6 months ago

My mistake.