VirtualBox

Changeset 66089 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 14, 2017 12:56:24 PM (8 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Another RT_FLEXIBLE_ARRAY note reading unions and gcc.

File:
1 edited

Legend:

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

    r66086 r66089  
    22912291 * @note    Never to a sizeof() on the structure or member!
    22922292 * @note    The member must be the last one.
     2293 * @note    GCC does not permit using this in a union.
    22932294 * @note    GCC does not permit using this in nested structures, where as MSC
    22942295 *          does.  So, use RT_FLEXIBLE_ARRAY_NESTED for that.
     
    23182319 * GCC only allow the use of flexible array member in the top structure, whereas
    23192320 * MSC is less strict and let you do struct { struct { char szName[]; } s; };
     2321 *
     2322 * @note    GCC does not permit using this in a union.
     2323 *
    23202324 * @sa      RT_FLEXIBLE_ARRAY
    23212325 */
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