mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-05 18:48:55 +01:00
Bug 659794: Define S_ISREG when it is not available
Not all compilers define S_ISREG on Windows, so define it in such situations
This commit is contained in:
@@ -65,6 +65,14 @@
|
|||||||
#define MAP_FAILED ((void *) -1)
|
#define MAP_FAILED ((void *) -1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
|
||||||
|
#ifndef S_ISREG
|
||||||
|
#define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
struct _GMappedFile
|
struct _GMappedFile
|
||||||
{
|
{
|
||||||
gchar *contents;
|
gchar *contents;
|
||||||
|
|||||||
Reference in New Issue
Block a user