VirtualBox

Changeset 84509 in vbox for trunk/include/iprt/path.h


Ignore:
Timestamp:
May 25, 2020 3:09:24 PM (5 years ago)
Author:
vboxsync
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/path.h

    r82968 r84509  
    741741     *       of the last component.  If RTPATH_PROP_DIR_SLASH is set, there may
    742742     *       be one or more trailing slashes that are unaccounted for! */
     743    RT_FLEXIBLE_ARRAY_EXTENSION
    743744    struct
    744745    {
     
    833834    const char *pszSuffix;
    834835    /** Array of component strings (variable size). */
     836    RT_FLEXIBLE_ARRAY_EXTENSION
    835837    char       *apszComps[RT_FLEXIBLE_ARRAY];
    836838} RTPATHSPLIT;
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