VirtualBox

Changeset 66100 in vbox


Ignore:
Timestamp:
Mar 14, 2017 7:09:50 PM (8 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Added RT_FLEXIBLE_ARRAY_IN_UNION and RT_FLEXIBLE_ARRAY_IN_NESTED_UNION.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r66098 r66100  
    23672367#endif
    23682368
    2369 /** @def RT_FLEXIBLE_ARRAY_NESTED
    2370  * Variant of RT_FLEXIBLE_ARRAY for use in structures that are nested.
    2371  *
    2372  * GCC only allow the use of flexible array member in the top structure, whereas
    2373  * MSC is less strict and let you do struct { struct { char szName[]; } s; };
    2374  *
    2375  * @note    GCC does not permit using this in a union.
    2376  *
    2377  * @sa      RT_FLEXIBLE_ARRAY
    2378  */
    2379 #ifdef _MSC_VER
    2380 # define RT_FLEXIBLE_ARRAY_NESTED               RT_FLEXIBLE_ARRAY
    2381 #else
    2382 # define RT_FLEXIBLE_ARRAY_NESTED               1
    2383 #endif
    2384 
    23852369/**
    23862370 * Checks if the value is a power of two.
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