VirtualBox

Changeset 3629 in vbox for trunk/include


Ignore:
Timestamp:
Jul 16, 2007 12:06:30 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22900
Message:

The SOMETHING OS and architecture #defines are now deprecated. Instead use RT_ARCH_[X86|AMD64], RT_OS_[DARWIN|FREEBSD|L4|LINUX|NETBSD|OPENBSD|OS2|SOLARIS|WINDOWS|whatever].

File:
1 edited

Legend:

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

    r3092 r3629  
    2222#define __iprt_alloca_h__
    2323
    24 
    2524/*
    2625 * If there are more difficult platforms out there, we'll do OS
     
    3029 * interesting of course...
    3130 */
    32 #if defined(IN_RING0) && defined(__LINUX__)
     31#if defined(IN_RING0) && defined(RT_OS_LINUX)
    3332/* ASSUMES GNU C */
    3433# define alloca(cb) __builtin_alloca(cb)
    3534#else
    3635# include <stdlib.h>
    37 # if !defined(__DARWIN__) && !defined(__FREEBSD__)
     36# if !defined(RT_OS_DARWIN) && !defined(RT_OS_FREEBSD)
    3837#  include <malloc.h>
    3938# endif
    40 # ifdef __SOLARIS__
     39# ifdef RT_OS_SOLARIS
    4140#  include <alloca.h>
    4241# endif
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