diff options
Diffstat (limited to 'glib/gmacros.h')
-rw-r--r-- | glib/gmacros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gmacros.h b/glib/gmacros.h index d205053fb..6f6420622 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -69,6 +69,8 @@ __attribute__((__unused__)) #define G_GNUC_NO_INSTRUMENT \ __attribute__((__no_instrument_function__)) +#define G_GNUC_MALLOC \ + __attribute__((__malloc__)) #else /* !__GNUC__ */ #define G_GNUC_PRINTF( format_idx, arg_idx ) #define G_GNUC_SCANF( format_idx, arg_idx ) @@ -77,6 +79,7 @@ #define G_GNUC_CONST #define G_GNUC_UNUSED #define G_GNUC_NO_INSTRUMENT +#define G_GNUC_MALLOC #endif /* !__GNUC__ */ #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) |