Skip to content

Commit c0f6a3f

Browse files
committed
Core: Check for C++17 before defining LV_NODISCARD as [[nodiscard]].
1 parent 6eb6cf3 commit c0f6a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvisual/libvisual/lv_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
#define __PRETTY_FUNCTION__ __FUNCTION__
121121
#endif
122122

123-
#ifdef __cplusplus
123+
#if __cplusplus >= 201703L
124124
#define LV_NODISCARD [[nodiscard]]
125125
#elif defined(_MSC_VER) && _MSC_VER >= 1700
126126
#define LV_NODISCARD _Check_return_

0 commit comments

Comments
 (0)