Skip to content

Instantly share code, notes, and snippets.

@djwong
Created November 4, 2014 23:19
Show Gist options
  • Save djwong/4f2effef51211f6ee30b to your computer and use it in GitHub Desktop.
Save djwong/4f2effef51211f6ee30b to your computer and use it in GitHub Desktop.
bleh hack fubar meh
diff --git a/lib/blkid/blkid_types.h.in b/lib/blkid/blkid_types.h.in
index 2bb3d85..d4c81d0 100644
--- a/lib/blkid/blkid_types.h.in
+++ b/lib/blkid/blkid_types.h.in
@@ -164,19 +164,4 @@ typedef long __s64;
#undef __S64_TYPEDEF
#undef __U64_TYPEDEF
-#ifdef __CHECKER__
-#define __bitwise __attribute__((bitwise))
-#define __force __attribute__((force))
-#else
-#define __bitwise
-#define __force
-#endif
-
-typedef __u16 __bitwise __le16;
-typedef __u32 __bitwise __le32;
-typedef __u64 __bitwise __le64;
-typedef __u16 __bitwise __be16;
-typedef __u32 __bitwise __be32;
-typedef __u64 __bitwise __be64;
-
#endif /* _*_TYPES_H */
diff --git a/lib/ext2fs/ext2_types.h.in b/lib/ext2fs/ext2_types.h.in
index a00ed7f..ba3d7e6 100644
--- a/lib/ext2fs/ext2_types.h.in
+++ b/lib/ext2fs/ext2_types.h.in
@@ -164,6 +164,11 @@ typedef long __s64;
#undef __S64_TYPEDEF
#undef __U64_TYPEDEF
+#endif /* _*_TYPES_H */
+
+#ifndef FUBAR_H_
+#define FUBAR_H_
+
#ifdef __CHECKER__
#define __bitwise __attribute__((bitwise))
#define __force __attribute__((force))
@@ -179,6 +184,6 @@ typedef __u16 __bitwise __be16;
typedef __u32 __bitwise __be32;
typedef __u64 __bitwise __be64;
-#endif /* _*_TYPES_H */
+#endif /* FUBAR_H_ */
@PUBLIC_CONFIG_HEADER@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment