VirtualBox

Changeset 95413 in vbox


Ignore:
Timestamp:
Jun 28, 2022 7:10:35 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152015
Message:

Attempt to fix build, bugref:10247.

macOS builds seem do not like attribute((fallthrough)).
Redefine RT_FALL_THRU for Linux + clang case.

File:
1 edited

Legend:

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

    r95411 r95413  
    13541354#if RT_CLANG_PREREQ(4, 0) && RT_CPLUSPLUS_PREREQ(201100)
    13551355# define RT_FALL_THROUGH()      [[clang::fallthrough]]
    1356 #elif RT_CLANG_PREREQ(4, 0) || RT_GNUC_PREREQ(7, 0)
     1356#elif (RT_CLANG_PREREQ(4, 0) && defined(RT_OS_LINUX)) || RT_GNUC_PREREQ(7, 0)
    13571357# define RT_FALL_THROUGH()      __attribute__((__fallthrough__))
    13581358#else
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