2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-04-24 15:23:39 +03:00
metamod-r/metamod/src/glibc_compat.cpp
Dmitry Novikov b838abda59
Migrate the CI/CD to GitHub Actions (#57)
* Implemented CI/CD migration to GitHub
* Remove gradle build
2022-07-03 04:15:27 +07:00

24 lines
486 B
C++

#include "precompiled.h"
// Compatibility with legacy glibc
#if !defined(_WIN32)
// i386 versions of the `stat' interface
#define _STAT_VER_LINUX 3
#define _STAT_VER _STAT_VER_LINUX
struct stat;
struct stat64;
extern "C" {
__asm__(".symver __xstat64,__xstat64@GLIBC_2.2");
int __xstat64(int ver, const char *path, struct stat64 *stat_buf);
int __wrap_stat64(const char *file, struct stat64 *buf)
{
return __xstat64(_STAT_VER, file, buf);
}
}
#endif // #if !defined(_WIN32)