mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +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:
parent
5ecca0e553
commit
21598c7466
@ -65,6 +65,14 @@
|
||||
#define MAP_FAILED ((void *) -1)
|
||||
#endif
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
struct _GMappedFile
|
||||
{
|
||||
gchar *contents;
|
||||
|
Loading…
x
Reference in New Issue
Block a user