ldc: Small fixes (includes, less warnings etc.)
[h316.git] / pc-tools / ldc / hw_types.h
index cb79661618c3d202892b27d657286a67d2db93e2..e5671157754e8de9e4108c40d518d1abae0c823c 100644 (file)
@@ -32,9 +32,9 @@ struct hw16_tape {
 };
 
 struct hw16_bytes {
-    unsigned char low __attribute__ ((packed));
-    unsigned char high __attribute__ ((packed));
-};
+    unsigned char low;
+    unsigned char high;
+}  __attribute__((packed)) w;
 
 struct hw16_otype {
     unsigned int space1:6 __attribute__ ((packed));
@@ -149,12 +149,12 @@ typedef union{
     
 
 typedef union {
-    struct hw16_bits bits __attribute__ ((packed));
-    struct hw16_bytes bytes __attribute__ ((packed));
-    struct hw16_tape tape __attribute__ ((packed));
-    struct hw16_otype blocktype __attribute__ ((packed));
-    unsigned short value __attribute__ ((packed));
-} hw16;
+       struct hw16_bits bits;
+       struct hw16_bytes bytes;
+       struct hw16_tape tape;
+       struct hw16_otype blocktype;
+       unsigned short value;
+}  __attribute__ ((packed)) hw16;
 
 enum {BT_DATA,BT_STOP};