attempted build fixes

This commit is contained in:
Eric Warmenhoven 2025-07-22 14:46:37 -04:00
parent 1f7e961f20
commit ea154a2303
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View file

@ -28,9 +28,9 @@
#include "video_core/renderer_software/renderer_software.h"
#ifdef ENABLE_OPENGL
#include <glad/glad.h>
#include <QOffscreenSurface>
#include <QOpenGLContext>
#include <glad/glad.h>
#endif
#if defined(__APPLE__)

View file

@ -43,7 +43,10 @@
#define fseeko _fseeki64
#define ftello _ftelli64
#define fileno _fileno
typedef struct _stat64 file_stat_t;
#define fstat _fstat64
#else
typedef struct stat file_stat_t;
#endif
#else
@ -445,11 +448,7 @@ u64 GetSize(const std::string& filename) {
}
u64 GetSize(const int fd) {
#ifdef _WIN32
struct _stat64 buf;
#else
struct stat buf;
#endif
file_stat_t buf;
if (fstat(fd, &buf) != 0) {
LOG_ERROR(Common_Filesystem, "GetSize: stat failed {}: {}", fd, GetLastErrorMsg());
return 0;