Skip to content

testing/libretro-neocd: fix build error

zhaixiaojuan requested to merge zhaixiaojuan/aports:libretro-neocd into master

build error:

src/archive.h:18:5: error: 'int64_t' does not name a type
   18 |     int64_t getFileSize(const std::string& path);
      |     ^~~~~~~
src/archive.h:6:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
    5 | #include <vector>
  +++ |+#include <cstdint>
    6 |
In file included from src/archive.cpp:2:
src/archivezip.h:12:5: error: 'int64_t' does not name a type
   12 |     int64_t getFileSize(const std::string &archive, const std::string &filename);
      |     ^~~~~~~
src/archivezip.h:1:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
  +++ |+#include <cstdint>
    1 | #ifndef ARCHIVEZIP_H
src/archive.cpp: In function 'int64_t Archive::getFileSize(const std::string&)':
src/archive.cpp:74:28: error: 'getFileSize' is not a member of 'ArchiveZip'; did you mean 'getFileList'?
   74 |         return ArchiveZip::getFileSize(archive, filename);
      |                            ^~~~~~~~~~~
      |                            getFileList
make: *** [Makefile:257: src/archive.o] Error 1

This issue has been fixed upstream:
https://github.com/libretro/neocd_libretro/blob/master/src/archive.h
https://github.com/libretro/neocd_libretro/blob/master/src/abstractfile.h

Merge request reports