Skip to content

Better detection of the cleanup attribute.

Álvaro Torralba requested to merge Alvarito050506/glib:main into main


This small patch changes the way support for the cleanup attribute is detected in gmacro.h, since it currently checks if __GNUC__ or __clang__ are defined, limiting compatibility with other compilers that support __has_attribute. Since the file uses g_macro__has_attribute in various places already, I assume this was unintentionally left from another time, but please feel free to correct me if that's not the case.


Merge request reports