Check if linux header ver.4 for avoid redeclaration enum values 85/229585/2 submit/tizen/20200402.061644
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 2 Apr 2020 06:05:32 +0000 (15:05 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 2 Apr 2020 06:05:51 +0000 (15:05 +0900)
Change-Id: Ia1a4adf24002d95cfe0f836561737f3cf3c37aa2
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
include/transport/mtp_descs_strings.h

index 9e340f5..45701f7 100644 (file)
@@ -17,7 +17,9 @@
 #include <linux/usb/ch9.h>
 #include <linux/usb/functionfs.h>
 #include <endian.h>
+#include <linux/version.h>
 
+#if (LINUX_VERSION_CODE >> 16) < 4
 #ifndef FUNCTIONFS_DESCRIPTORS_MAGIC_V2
 #define FUNCTIONFS_DESCRIPTORS_MAGIC_V2 3
 enum functionfs_flags {
@@ -27,6 +29,7 @@ enum functionfs_flags {
         FUNCTIONFS_HAS_MS_OS_DESC = 8,
 };
 #endif
+#endif
 
 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 #define cpu_to_le16(x)  (x)