We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8096ffe commit 4428cb2Copy full SHA for 4428cb2
1 file changed
libvisual/libvisual/lv_defines.h
@@ -122,9 +122,9 @@
122
123
#ifdef __cplusplus
124
#define LV_NODISCARD [[nodiscard]]
125
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) && _MSC_VER >= 1700
126
#define LV_NODISCARD _Check_return_
127
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && __GNUC__ >= 4
128
#define LV_NODISCARD __attribute__ ((warn_unused_result))
129
#else
130
#define LV_NODISCARD
0 commit comments