Web lists-archives.com

Unknown symbol in 'gio/gresource.c'




I just hit a problem when building from git master with MSVC (32-bit build). It's in 'gio/gresource.c' at line 254 in the function 'enumerate_overlay_dir()':-

      if (g_stat (fullname, &buf) == 0 && S_ISDIR (buf.st_mode))

'S_ISDIR' is coming up as an unknown symbol. In other places where we use S_ISDIR we usually have something like this near the top of the file:-

      #ifdef G_OS_WIN32
      #include <io.h>
      #ifndef S_ISDIR
      #define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
      #endif
      #endif

and if I add that near the top of 'gio/gresource.c' it fixes the problem. Just passing it upstream. Regards,

John
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-devel-list