mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Fix build with the Microsoft compiler
Correct a few gccisms and C99isms. Ensure the Windows-specific gio source files are listed in the generated gio VS project file.
This commit is contained in:
@@ -54,12 +54,14 @@ static void g_file_descriptor_based_iface_init (GFileDescriptorBasedIfac
|
||||
#endif
|
||||
|
||||
#define g_local_file_input_stream_get_type _g_local_file_input_stream_get_type
|
||||
G_DEFINE_TYPE_WITH_CODE (GLocalFileInputStream, g_local_file_input_stream, G_TYPE_FILE_INPUT_STREAM,
|
||||
#ifdef G_OS_UNIX
|
||||
G_DEFINE_TYPE_WITH_CODE (GLocalFileInputStream, g_local_file_input_stream, G_TYPE_FILE_INPUT_STREAM,
|
||||
G_IMPLEMENT_INTERFACE (G_TYPE_FILE_DESCRIPTOR_BASED,
|
||||
g_file_descriptor_based_iface_init)
|
||||
#endif
|
||||
);
|
||||
#else
|
||||
G_DEFINE_TYPE_WITH_CODE (GLocalFileInputStream, g_local_file_input_stream, G_TYPE_FILE_INPUT_STREAM,);
|
||||
#endif
|
||||
|
||||
struct _GLocalFileInputStreamPrivate {
|
||||
int fd;
|
||||
|
Reference in New Issue
Block a user