mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-05 13:42:04 +01:00
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
25 lines
491 B
Diff
25 lines
491 B
Diff
diff --git a/src/abstractfile.h b/src/abstractfile.h
|
|
index 3efe7e0..c8a8f7a 100644
|
|
--- a/src/abstractfile.h
|
|
+++ b/src/abstractfile.h
|
|
@@ -1,6 +1,7 @@
|
|
#ifndef ABSTRACTFILE_H
|
|
#define ABSTRACTFILE_H 1
|
|
|
|
+#include <cstdint>
|
|
#include <string>
|
|
|
|
class AbstractFile
|
|
diff --git a/src/archive.h b/src/archive.h
|
|
index de82316..52e403e 100644
|
|
--- a/src/archive.h
|
|
+++ b/src/archive.h
|
|
@@ -1,6 +1,7 @@
|
|
#ifndef ARCHIVE_H
|
|
#define ARCHIVE_H
|
|
|
|
+#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|