mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +02:00
Better detection of the cleanup attribute.
Use g_macro__has_attribute to detect it instead of hardcoding __GNUC__ || __clang__. This adds support for a few compiler and is consistent with the rest of the gmacros.h file.
This commit is contained in:
committed by
Philip Withnall
parent
1f1bf730a2
commit
03753cda79
@@ -783,6 +783,7 @@ g_macro__has_attribute_fallthrough
|
||||
g_macro__has_attribute_may_alias
|
||||
g_macro__has_attribute___noinline__
|
||||
g_macro__has_attribute_warn_unused_result
|
||||
g_macro__has_attribute_cleanup
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
Reference in New Issue
Block a user