[PATCH 5/7] v4l-utils: fix compilation with libcxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The fallthrough define doesn't work properly there. Use the included
macro.

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 include/compiler.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/compiler.h b/include/compiler.h
index 22fa660b..53d9b7ec 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -1,5 +1,9 @@
 #ifdef __cplusplus
 
+#ifdef _LIBCPP_VERSION
+#define fallthrough _LIBCPP_FALLTHROUGH()
+#else
+
 #ifdef __clang__
 #define fallthrough [[clang::fallthrough]]
 #else
@@ -7,3 +11,4 @@
 #endif
 
 #endif
+#endif
-- 
2.25.3




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux