Whamcloud - gitweb
Fixx gcc -Wall nitpicks.
[tools/e2fsprogs.git] / lib / ext2fs / ext2_types.h.in
index 1d82c5d..56897dd 100644 (file)
@@ -13,39 +13,49 @@ typedef signed char __s8;
 #if (@SIZEOF_INT@ == 8)
 typedef int            __s64;
 typedef unsigned int   __u64;
-#elif (@SIZEOF_LONG@ == 8)
+#else
+#if (@SIZEOF_LONG@ == 8)
 typedef long           __s64;
 typedef unsigned long  __u64;
-#elif (@SIZEOF_LONG_LONG@ == 8)
+#else
+#if (@SIZEOF_LONG_LONG@ == 8)
 #if defined(__GNUC__)
 typedef __signed__ long long   __s64;
 #else
 typedef signed long long       __s64;
-#endif
+#endif /* __GNUC__ */
 typedef unsigned long long     __u64;
-#endif
+#endif /* SIZEOF_LONG_LONG == 8 */
+#endif /* SIZEOF_LONG == 8 */
+#endif /* SIZEOF_INT == 8 */
 
 #if (@SIZEOF_INT@ == 2)
 typedef        int             __s16;
 typedef        unsigned int    __u16;
-#elif (@SIZEOF_SHORT@ == 2)
+#else
+#if (@SIZEOF_SHORT@ == 2)
 typedef        short           __s16;
 typedef        unsigned short  __u16;
 #else
   ?==error: undefined 16 bit type
-#endif
+#endif /* SIZEOF_SHORT == 2 */
+#endif /* SIZEOF_INT == 2 */
 
 #if (@SIZEOF_INT@ == 4)
 typedef        int             __s32;
 typedef        unsigned int    __u32;
-#elif (@SIZEOF_LONG@ == 4)
+#else
+#if (@SIZEOF_LONG@ == 4)
 typedef        long            __s32;
 typedef        unsigned long   __u32;
-#elif (@SIZEOF_SHORT@ == 4)
+#else
+#if (@SIZEOF_SHORT@ == 4)
 typedef        short           __s32;
 typedef        unsigned short  __u32;
 #else
  ?== error: undefined 32 bit type
-#endif
+#endif /* SIZEOF_SHORT == 4 */
+#endif /* SIZEOF_LONG == 4 */
+#endif /* SIZEOF_INT == 4 */
 
 #endif /* _*_TYPES_H */