GNOME Bugzilla – Bug 743661
g_win32_check_windows_version() is missing from doc
Last modified: 2015-03-13 11:47:03 UTC
patch comming.
Created attachment 295685 [details] [review] Win32: Move g_win32_check_windows_version() to the correct place in header It was added after G_END_DECLS, outside the #ifdef G_PLATFORM_WIN32, and inside a #ifndef __GTK_DOC_IGNORE__ block. So it was missing from the doc.
Note: the diff seems unrelated, please check the win32.h file after applying.
Review of attachment 295685 [details] [review]: Why did you avoid moving all of that other stuff inside of G_END_DECLS (and ifdef G_PLATFORM_WIN32) as well?
Was unsure if it was there for a reason or not, since it has been like that for a long time. I've no idea what's correct for windows headers tbh. I let you decide :D
Hi Xavier, Yeah, I did have the new function prototype and the enum that it uses in the __GTK_DOC_IGNORE__ block by accident, as you pointed. It's my fault, really :). Hello Ryan, I think the patch that Xavier had was the intended effect of the code I added in there, so I think it's right after applying the patch, although it does seems unrelated. With blessings, thank you!
(In reply to comment #5) > Hi Xavier, > > Yeah, I did have the new function prototype and the enum that it uses in the > __GTK_DOC_IGNORE__ block by accident, as you pointed. It's my fault, really > :). > So should we move the other code into the main part of the header as well?
Hello Xavier, (In reply to comment #6) > So should we move the other code into the main part of the header as well? Did you mean the parts like #define g_win32_get_package_installation_directory g_win32_get_package_installation_directory_utf8? I think we could just keep that in a #ifndef __GTK_DOC_IGNORE__ block, but move the items there before G_END_DECLS. It looks like an oversight from bug 688109. With blessings!
Created attachment 296613 [details] [review] Win32: Move g_win32_check_windows_version() to the correct place in header It was added after G_END_DECLS, outside the #ifdef G_PLATFORM_WIN32, and inside a #ifndef __GTK_DOC_IGNORE__ block. So it was missing from the doc.
https://git.gnome.org/browse/glib/commit/?id=8b654e24a5743a32b1d11794fef10a7cbf8ff5d3