Skip to content

gmacros: Add __ to noinline to prevent conflict with macro in pixman

gmacros: Add __ to noinline to prevent conflict with macro in pixman

I've add "__" before and after the 2 "noinline" in gmacros.h line 248-249 and line 132. It had be a conflict when i build pixman with glib previously build, and add that solved my problem I tried that because there was the same before ("maloc" line 242-243) It was confirmed by this comment I quote his arguments:

GCC documentation says: "You may optionally specify attribute names with ‘__’ preceding and following the name. This allows you to use them in header files without being concerned about a possible macro of the same name. For example, you may use the attribute name __noreturn__ instead of noreturn."

I also modified /docs/reference/glib/glib-sections.txt to match with my previous modifications

Fixes: #2388 (closed)

Edited by Robin Verdenal-Tallieux

Merge request reports