aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJin Qian <jinqian@google.com>2017-10-09 17:45:04 -0700
committerJin Qian <jinqian@google.com>2017-11-10 12:26:35 -0800
commit3b6444cb27c196ad4f8356c7cee4465b6cd7865e (patch)
tree3a9c44d416aa28cbf26b003c8b28c825b626656a /lib
parentda63249bb23d54e7a9eaab1d365ec7b175ad5e30 (diff)
downloade2fsprogs-3b6444cb27c196ad4f8356c7cee4465b6cd7865e.tar.gz
Fix build warnings with '__bitwise' macro redefined
external/e2fsprogs/lib/blkid/blkid_types.h:30:9: warning: '__bitwise' macro redefined [-Wmacro-redefined] external/e2fsprogs/lib/ext2fs/ext2_types.h:30:9: warning: '__bitwise' macro redefined [-Wmacro-redefined] Bug: 67046543 Change-Id: Ic8a552f68e6e17be4bdca63e24b45f6c9a6dbcd7
Diffstat (limited to 'lib')
-rw-r--r--lib/blkid/blkid_types.h4
-rw-r--r--lib/ext2fs/ext2_types.h4
-rw-r--r--lib/ext2fs/ext2_types.h.in6
3 files changed, 10 insertions, 4 deletions
diff --git a/lib/blkid/blkid_types.h b/lib/blkid/blkid_types.h
index 9c3f7149..a43ed2fe 100644
--- a/lib/blkid/blkid_types.h
+++ b/lib/blkid/blkid_types.h
@@ -1,4 +1,4 @@
-/*
+/*
* If linux/types.h is already been included, assume it has defined
* everything we need. (cross fingers) Other header files may have
* also defined the types that we need.
@@ -27,7 +27,9 @@ typedef __signed__ long long __s64;
#define __bitwise __attribute__((bitwise))
#define __force __attribute__((force))
#else
+#ifndef __bitwise
#define __bitwise
+#endif
#define __force
#endif
diff --git a/lib/ext2fs/ext2_types.h b/lib/ext2fs/ext2_types.h
index 9c3f7149..a43ed2fe 100644
--- a/lib/ext2fs/ext2_types.h
+++ b/lib/ext2fs/ext2_types.h
@@ -1,4 +1,4 @@
-/*
+/*
* If linux/types.h is already been included, assume it has defined
* everything we need. (cross fingers) Other header files may have
* also defined the types that we need.
@@ -27,7 +27,9 @@ typedef __signed__ long long __s64;
#define __bitwise __attribute__((bitwise))
#define __force __attribute__((force))
#else
+#ifndef __bitwise
#define __bitwise
+#endif
#define __force
#endif
diff --git a/lib/ext2fs/ext2_types.h.in b/lib/ext2fs/ext2_types.h.in
index 07adc64a..e815ba65 100644
--- a/lib/ext2fs/ext2_types.h.in
+++ b/lib/ext2fs/ext2_types.h.in
@@ -1,6 +1,6 @@
-/*
+/*
* If linux/types.h is already been included, assume it has defined
- * everything we need. (cross fingers) Other header files may have
+ * everything we need. (cross fingers) Other header files may have
* also defined the types that we need.
*/
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
@@ -176,7 +176,9 @@ typedef long __s64;
#define __bitwise __attribute__((bitwise))
#define __force __attribute__((force))
#else
+#ifndef __bitwise
#define __bitwise
+#endif
#define __force
#endif