]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove PACKED macro
authorKarel Zak <kzak@redhat.com>
Thu, 5 Jan 2012 16:01:19 +0000 (17:01 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Jan 2012 16:01:19 +0000 (17:01 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.h

index 84be09c8626783d2bf94c82ade1f1057ba1be410..9957d7652c056f9dddf71a70d91b851cbfcbbc1c 100644 (file)
 #define cround(n)      (display_in_cyl_units ? ((n)/units_per_sector)+1 : (n))
 #define scround(x)     (((x)+units_per_sector-1)/units_per_sector)
 
-#if defined(__GNUC__) && (defined(__arm__) || defined(__alpha__))
-# define PACKED __attribute__ ((packed))
-#else
-# define PACKED
-#endif
-
 struct partition {
        unsigned char boot_ind;         /* 0x80 - active */
        unsigned char head;             /* starting head */
@@ -43,7 +37,7 @@ struct partition {
        unsigned char end_cyl;          /* end cylinder */
        unsigned char start4[4];        /* starting sector counting from 0 */
        unsigned char size4[4];         /* nr of sectors in partition */
-} PACKED;
+} __attribute__ ((packed));
 
 enum menutype {
        MAIN_MENU,