mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Define fstat() for msvc build
This commit is contained in:
parent
75ef018248
commit
4a50bab276
@ -81,6 +81,10 @@
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define fstat(a,b) _fstat(a,b)
|
||||
#endif
|
||||
|
||||
#include "gstdio.h"
|
||||
#include "glibintl.h"
|
||||
|
||||
|
@ -39,6 +39,10 @@
|
||||
#ifdef G_OS_WIN32
|
||||
#include <io.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define fstat(a,b) _fstat(a,b)
|
||||
#endif
|
||||
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(mode) ((mode)&_S_IFREG)
|
||||
#endif
|
||||
|
@ -37,6 +37,11 @@
|
||||
#ifdef G_OS_WIN32
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define fstat(a,b) _fstat(a,b)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#include "gconvert.h"
|
||||
|
Loading…
Reference in New Issue
Block a user