]> git.sesse.net Git - vlc/blobdiff - include/vlc_common.h
Use var_Inherit* instead of var_CreateGet*.
[vlc] / include / vlc_common.h
index 68db9252301d26787406cf28ff5615bfff328859..7e16c13d6978d3292c5f54429741aaeef04f1e63 100644 (file)
 #     define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
 #   endif
 #   define LIBVLC_FORMAT_ARG(x) __attribute__ ((format_arg(x)))
-#   define LIBVLC_USED __attribute__ ((warn_unused_result))
+#   if __GNUC__ > 3 || (__GNUC__ == 3 && (__GNUC_MINOR__ >= 4))
+#     define LIBVLC_USED __attribute__ ((warn_unused_result))
+#   else
+#     define LIBVLC_USED
+#   endif
 #   define LIBVLC_MALLOC __attribute__ ((malloc))
 #else
 #   define LIBVLC_FORMAT(x,y)