[glib] Have gtk-doc ignore some #defines



commit 6492548b6f4d1805f7817911207648f0b1eeae19
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Jul 22 13:41:13 2011 +0200

    Have gtk-doc ignore some #defines
    
    We prefer to have gtk-doc pick up the function rather than the macro.

 glib/gstdio.h |    2 ++
 glib/gwin32.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/gstdio.h b/glib/gstdio.h
index b92eb6c..981faa6 100644
--- a/glib/gstdio.h
+++ b/glib/gstdio.h
@@ -60,6 +60,7 @@ typedef struct stat GStatBuf;
  * in a portable system header that we could include here.
  */
 
+#ifndef __GTK_DOC_IGNORE__
 #define g_chmod   chmod
 #define g_open    open
 #define g_creat   creat
@@ -71,6 +72,7 @@ typedef struct stat GStatBuf;
 #define g_fopen   fopen
 #define g_freopen freopen
 #define g_utime   utime
+#endif
 
 int g_access (const gchar *filename,
 	      int          mode);
diff --git a/glib/gwin32.h b/glib/gwin32.h
index 5793335..f368c1d 100644
--- a/glib/gwin32.h
+++ b/glib/gwin32.h
@@ -85,8 +85,10 @@ gchar*          g_win32_error_message (gint error);
 
 #ifndef G_DISABLE_DEPRECATED
 
+#ifndef __GTK_DOC_IGNORE__
 #define g_win32_get_package_installation_directory g_win32_get_package_installation_directory_utf8
 #define g_win32_get_package_installation_subdirectory g_win32_get_package_installation_subdirectory_utf8
+#endif
 
 gchar*          g_win32_get_package_installation_directory (const gchar *package,
 							    const gchar *dll_name);



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