VirtualBox

Changeset 84509 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
May 25, 2020 3:09:24 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138238
Message:

iprt/cdefs.h,*: Introducing RT_FLEXIBLE_ARRAY_EXTENSION as a g++ hack that allows us to use RT_FLEXIBLE_ARRAY without the compiler going all pendantic on us. Only tested with 10.1.0. bugref:9746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/hyperv.h

    r82968 r84509  
    3636#else
    3737# define RT_FLEXIBLE_ARRAY
     38# define RT_FLEXIBLE_ARRAY_EXTENSION
    3839# define AssertCompile(expr)
    3940# define AssertCompileSize(type, size)
     
    498499    uint32_t            u32ExplicitPadding;
    499500    /* The repeating part: */
     501    RT_FLEXIBLE_ARRAY_EXTENSION
    500502    HV_SPA_PAGE_NUMBER  PageList[RT_FLEXIBLE_ARRAY];
    501503} HV_INPUT_MAP_GPA_PAGES;
     
    521523    uint32_t            u32ExplicitPadding;
    522524    /* The repeating part: */
     525    RT_FLEXIBLE_ARRAY_EXTENSION
    523526    HV_GPA_MAPPING      PageList[RT_FLEXIBLE_ARRAY];
    524527} HV_INPUT_MAP_SPARSE_GPA_PAGES;
     
    12341237    uint32_t            fFlags;
    12351238    /* The repeating part: */
     1239    RT_FLEXIBLE_ARRAY_EXTENSION
    12361240    HV_REGISTER_NAME    Names[RT_FLEXIBLE_ARRAY];
    12371241} HV_INPUT_GET_VP_REGISTERS;
     
    12681272    uint32_t            RsvdZ;
    12691273    /* The repeating part: */
     1274    RT_FLEXIBLE_ARRAY_EXTENSION
    12701275    HV_REGISTER_ASSOC   Elements[RT_FLEXIBLE_ARRAY];
    12711276} HV_INPUT_SET_VP_REGISTERS;
Note: See TracChangeset for help on using the changeset viewer.

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