mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +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)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef G_OS_WIN32
 | 
			
		||||
 | 
			
		||||
#ifndef S_ISREG
 | 
			
		||||
#define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
struct _GMappedFile 
 | 
			
		||||
{
 | 
			
		||||
  gchar *contents;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user