Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. typedef unsigned short uint16_t;
  2. typedef unsigned char uint8_t;
  3.  
  4. typedef union Unaligned16a {
  5.   uint16_t u;
  6.   uint8_t b[2];
  7. } __attribute__((packed)) Unaligned16a;
  8.  
  9. typedef union __attribute__((packed)) Unaligned16b {
  10.   uint16_t u;
  11.   uint8_t b[2];
  12. } Unaligned16b;
  13.  
  14. int main () { return 0; }
  15.