VirtualBox

Changeset 76440 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 24, 2018 3:14:59 PM (6 years ago)
Author:
vboxsync
Message:

iprt/format/udf.h,iprt/formats/pecoff.h: GCC and 16-bit and 8-bit sized bitfields.

Location:
trunk/include/iprt/formats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/pecoff.h

    r73396 r76440  
    688688        /** Unwind opcode.
    689689         * For AMD64 see IMAGE_AMD64_UNWIND_OP_CODES. */
    690         uint8_t UnwindOp : 4;
     690        RT_GCC_EXTENSION uint8_t UnwindOp : 4;
    691691        /** Opcode specific. */
    692         uint8_t OpInfo   : 4;
     692        RT_GCC_EXTENSION uint8_t OpInfo   : 4;
    693693    } u;
    694694    uint16_t    FrameOffset;
     
    706706{
    707707    /** Version, currently 1 or 2.  The latter if IMAGE_AMD64_UWOP_EPILOG is used. */
    708     uint8_t             Version : 3;
     708    RT_GCC_EXTENSION uint8_t    Version : 3;
    709709    /** IMAGE_UNW_FLAG_XXX */
    710     uint8_t             Flags : 5;
     710    RT_GCC_EXTENSION uint8_t    Flags : 5;
    711711    /** Size of function prolog. */
    712     uint8_t             SizeOfProlog;
     712    uint8_t                     SizeOfProlog;
    713713    /** Number of opcodes in aOpcodes. */
    714     uint8_t             CountOfCodes;
     714    uint8_t                     CountOfCodes;
    715715    /** Initial frame register. */
    716     uint8_t             FrameRegister : 4;
     716    RT_GCC_EXTENSION uint8_t    FrameRegister : 4;
    717717    /** Scaled frame register offset. */
    718     uint8_t             FrameOffset : 4;
     718    RT_GCC_EXTENSION uint8_t    FrameOffset : 4;
    719719    /** Unwind opcodes. */
    720720    IMAGE_UNWIND_CODE   aOpcodes[RT_FLEXIBLE_ARRAY];
  • trunk/include/iprt/formats/udf.h

    r69059 r76440  
    233233#ifdef RT_BIG_ENDIAN
    234234    /** 0x00: Type (UDFTIMESTAMP_T_XXX). */
    235     uint16_t        fType : 4;
     235    RT_GCC_EXTENSION uint16_t   fType : 4;
    236236    /** 0x00: Time zone offset in minutes.
    237237     * For EST this will be -300, whereas for CET it will be 60. */
    238     int16_t         offUtcInMin : 12;
     238    RT_GCC_EXTENSION int16_t    offUtcInMin : 12;
    239239#else
    240240    /** 0x00: Time zone offset in minutes.
    241241     * For EST this will be -300, whereas for CET it will be 60. */
    242     int16_t         offUtcInMin : 12;
     242    RT_GCC_EXTENSION int16_t    offUtcInMin : 12;
    243243    /** 0x00: Type (UDFTIMESTAMP_T_XXX). */
    244     uint16_t        fType : 4;
     244    RT_GCC_EXTENSION uint16_t   fType : 4;
    245245#endif
    246246    /** 0x02: The year. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette