GNOME Bugzilla – Bug 744190
Fix build on Compilers That Do Not Use inline for Plain C Code
Last modified: 2015-02-10 15:20:47 UTC
Hi, Commits 1404d3e ("Add GMutexLocker") and e668796 ("Add new API g_steal_pointer()") made use of the "inline" keyword that is not available on all compilers in C-mode, causing builds to break. I will attach a simple patch in a bit to include gutils.h, which does the necessary thing to handle the "inline" keyword issue in a bit to fix the build. With blessings, thank you!
Created attachment 296410 [details] [review] gmem.h, gthread.h: Include glib/gutils.h Hi, This is the simple patch that fixes the build on compilers that do not have inline in C-mode. With blessings, thank you!
hi Chun-wei Fan, I am unable to properly review this patch at the moment (possibly due to fallout from the bugzilla upgrade) but it looks fine. Please merge it. I didn't realise all this time that 'inline' was only working on MSVC because we redefined it in gutils.h. TIL. Cheers
Hello Ryan, Thanks for the review and response. Patch was committed as 433fc947 (somehow I was not able to change the patch status via "review"), will close this bug shortly. With blessings, thank you!