[glib] glocal*monitor: export ABI only on UNIX



commit b7e749fc68eeedf0abc392c00acb8d0bde2352dd
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Jan 14 11:14:53 2013 -0500

    glocal*monitor: export ABI only on UNIX
    
    Add an #ifdef G_OS_UNIX around the GLIB_AVAILABLE_IN_ALL annotation on
    the _get_type() functions for GLocal{File,Directory}Monitor.
    
    These symbols are in private header files and are only exported so that
    the in-tree file monitoring modules can subclass.  This is only needed
    on UNIX and was therefore never part of the public ABI on Windows.
    
    Caught by Dieter Verfaillie.

 gio/glocaldirectorymonitor.h |    2 ++
 gio/glocalfilemonitor.h      |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/glocaldirectorymonitor.h b/gio/glocaldirectorymonitor.h
index a93d113..3baa843 100644
--- a/gio/glocaldirectorymonitor.h
+++ b/gio/glocaldirectorymonitor.h
@@ -60,7 +60,9 @@ struct _GLocalDirectoryMonitorClass
   gboolean (* is_supported) (void);
 };
 
+#ifdef G_OS_UNIX
 GLIB_AVAILABLE_IN_ALL
+#endif
 GType           g_local_directory_monitor_get_type (void) G_GNUC_CONST;
 
 GFileMonitor * _g_local_directory_monitor_new      (const char         *dirname,
diff --git a/gio/glocalfilemonitor.h b/gio/glocalfilemonitor.h
index 8c7a595..0c002f9 100644
--- a/gio/glocalfilemonitor.h
+++ b/gio/glocalfilemonitor.h
@@ -53,7 +53,9 @@ struct _GLocalFileMonitorClass
   gboolean (* is_supported) (void);
 };
 
+#ifdef G_OS_UNIX
 GLIB_AVAILABLE_IN_ALL
+#endif
 GType           g_local_file_monitor_get_type (void) G_GNUC_CONST;
 
 GFileMonitor * _g_local_file_monitor_new      (const char         *pathname,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]