VirtualBox

儲存庫 vbox 的更動 62941


忽略:
時間撮記:
2016-8-3 下午09:40:30 (8 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette