attempted build fixes
This commit is contained in:
parent
1f7e961f20
commit
ea154a2303
2 changed files with 5 additions and 6 deletions
|
|
@ -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__)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue