mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 21:03:51 +01:00
gmappedfile.c: Define S_IFREG on Win32 when it's not available
Make a workaround for S_IFREG in gmappedfile.c on Windows as it may not be available for a given compiler on that platform
This commit is contained in:
parent
f42fe6cdc0
commit
9958909fb2
@ -41,6 +41,10 @@
|
|||||||
#define fstat(a,b) _fstati64(a,b)
|
#define fstat(a,b) _fstati64(a,b)
|
||||||
#define stat _stati64
|
#define stat _stati64
|
||||||
|
|
||||||
|
#ifndef S_ISREG
|
||||||
|
#define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gconvert.h"
|
#include "gconvert.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user