VirtualBox

Changeset 62941 in vbox


Ignore:
Timestamp:
Aug 3, 2016 9:40:30 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109544
Message:

iprt/alloca.h: Define alloca() IN_RING0 for NetBSD too. While here,
reformat and sort the already long list of RT_OS_* checks.

Normally alloca() definition is provided by <lib/libkern/libkern.h>,
but I'm worried about namespace pollution.

File:
1 edited

Legend:

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

    r62473 r62941  
    3939 */
    4040#if defined(IN_RING0) \
    41  && (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD))
     41 && (   defined(RT_OS_DARWIN) \
     42     || defined(RT_OS_FREEBSD) \
     43     || defined(RT_OS_LINUX) \
     44     || defined(RT_OS_NETBSD) \
     45     || defined(RT_OS_SOLARIS))
    4246/* ASSUMES GNU C */
    4347# define alloca(cb) __builtin_alloca(cb)
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