[glib/glib-2-28] win32: don't use G_DEFINE_TYPE_WITH_CODE without code
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] win32: don't use G_DEFINE_TYPE_WITH_CODE without code
- Date: Fri, 6 Jul 2012 16:19:49 +0000 (UTC)
commit 595a0cff934ac4e2c93e9319c3fac2a503a7e5a9
Author: Hans Breuer <hans breuer org>
Date: Fri Jul 6 18:07:09 2012 +0200
win32: don't use G_DEFINE_TYPE_WITH_CODE without code
Using just G_DEFINE_TYPE make it compile with msvc6, too.
gio/glocalfileinputstream.c | 2 +-
gio/glocalfileoutputstream.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/glocalfileinputstream.c b/gio/glocalfileinputstream.c
index 5aa436d..b71518c 100644
--- a/gio/glocalfileinputstream.c
+++ b/gio/glocalfileinputstream.c
@@ -59,7 +59,7 @@ G_DEFINE_TYPE_WITH_CODE (GLocalFileInputStream, g_local_file_input_stream, G_TYP
g_file_descriptor_based_iface_init)
);
#else
-G_DEFINE_TYPE_WITH_CODE (GLocalFileInputStream, g_local_file_input_stream, G_TYPE_FILE_INPUT_STREAM,);
+G_DEFINE_TYPE (GLocalFileInputStream, g_local_file_input_stream, G_TYPE_FILE_INPUT_STREAM);
#endif
struct _GLocalFileInputStreamPrivate {
diff --git a/gio/glocalfileoutputstream.c b/gio/glocalfileoutputstream.c
index 40576a9..6db84c3 100644
--- a/gio/glocalfileoutputstream.c
+++ b/gio/glocalfileoutputstream.c
@@ -69,7 +69,7 @@ G_DEFINE_TYPE_WITH_CODE (GLocalFileOutputStream, g_local_file_output_stream, G_T
g_file_descriptor_based_iface_init)
);
#else
-G_DEFINE_TYPE_WITH_CODE (GLocalFileOutputStream, g_local_file_output_stream, G_TYPE_FILE_OUTPUT_STREAM,);
+G_DEFINE_TYPE (GLocalFileOutputStream, g_local_file_output_stream, G_TYPE_FILE_OUTPUT_STREAM);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]