Have gtk-doc ignore some #defines
authorRyan Lortie <desrt@desrt.ca>
Fri, 22 Jul 2011 11:41:13 +0000 (13:41 +0200)
committerRyan Lortie <desrt@desrt.ca>
Fri, 22 Jul 2011 13:47:24 +0000 (15:47 +0200)
We prefer to have gtk-doc pick up the function rather than the macro.

glib/gstdio.h
glib/gwin32.h

index b92eb6c..981faa6 100644 (file)
@@ -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);
index 5793335..f368c1d 100644 (file)
@@ -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);