glib compilation problems when building from git master with MSVC

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

glib compilation problems when building from git master with MSVC

John Emmas-2
When trying to build glib (git master) I've hit a few compilation snags
arising from commit #53bd6a359f (29th Sept 2017)

1) Firstly (in gstdio.c) the function:- '_g_win32_readlink_utf16_raw()'
uses a value called "IO_REPARSE_TAG_SYMLINK".  This doesn't seem to be
defined for MSVC - at least not in my version (VC8).

2) gstdio.c uses some other identifiers too - notably,
'FILE_STANDARD_INFO' and 'FILE_NAME_NORMALIZED'.  These seem to be
declared in winbase.h which should (in theory) be getting #included by
windows.h.  However, MSVC reports them both as undeclared identifiers
(even if I specifically #include winbase.h !!)

Is there some new #define needed which I maybe don''t know about ??

John
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: glib compilation problems when building from git master with MSVC

Philip Withnall-2
On Fri, 2017-11-03 at 14:54 +0000, John Emmas wrote:
> When trying to build glib (git master) I've hit a few compilation
> snags
> arising from commit #53bd6a359f (29th Sept 2017)

Thanks for reporting these problems. I’ve reopened the bug (#788180)
which added this code; let’s discuss things there. I’ve subscribed you
to it.

Philip

> 1) Firstly (in gstdio.c) the function:-
> '_g_win32_readlink_utf16_raw()'
> uses a value called "IO_REPARSE_TAG_SYMLINK".  This doesn't seem to
> be
> defined for MSVC - at least not in my version (VC8).
>
> 2) gstdio.c uses some other identifiers too - notably,
> 'FILE_STANDARD_INFO' and 'FILE_NAME_NORMALIZED'.  These seem to be
> declared in winbase.h which should (in theory) be getting #included
> by
> windows.h.  However, MSVC reports them both as undeclared
> identifiers
> (even if I specifically #include winbase.h !!)
>
> Is there some new #define needed which I maybe don''t know about ??
>
> John
> _______________________________________________
> gtk-devel-list mailing list
> [hidden email]
> https://mail.gnome.org/mailman/listinfo/gtk-devel-list
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

signature.asc (849 bytes) Download Attachment