]> git.sesse.net Git - vlc/blobdiff - include/vlc_common.h
Add LIBVLC_MALLOC function attribute
[vlc] / include / vlc_common.h
index 87a0610955af20819abfe0446d8e9a672bc29713..2244cdbbf0dea75dcbe908dceaf91dbdf508001f 100644 (file)
 #ifdef __GNUC__
 #   define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
 #   define LIBVLC_USED __attribute__ ((warn_unused_result))
+#   define LIBVLC_MALLOC __attribute__ ((malloc))
 #else
 #   define LIBVLC_FORMAT(x,y)
 #   define LIBVLC_USED
+#   define LIBVLC_MALLOC
 #endif
 
 /*****************************************************************************