VirtualBox

Changeset 84509 in vbox for trunk/src/VBox/Runtime/generic


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

Location:
trunk/src/VBox/Runtime/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/ftp-server.cpp

    r82842 r84509  
    105105    size_t      cchName;
    106106    /** The entry name. */
     107    RT_FLEXIBLE_ARRAY_EXTENSION
    107108    char        szName[RT_FLEXIBLE_ARRAY];
    108109} RTFTPDIRENTRY;
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r83356 r84509  
    128128    uint32_t            offValue;
    129129    /** The full header field. */
    130     char                szData[RT_FLEXIBLE_ARRAY];
     130    RT_FLEXIBLE_ARRAY_EXTENSION
     131    RT_GCC_EXTENSION char szData[RT_FLEXIBLE_ARRAY];
    131132} RTHTTPHEADER;
    132133/** Pointer to a HTTP header. */
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