~ubuntu-branches/ubuntu/oneiric/virtualbox-ose/oneiric

« back to all changes in this revision

Viewing changes to include/iprt/alloca.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 * terms and conditions of either the GPL or the CDDL or both.
24
24
 */
25
25
 
26
 
#ifndef __iprt_alloca_h__
27
 
#define __iprt_alloca_h__
 
26
#ifndef ___iprt_alloca_h
 
27
#define ___iprt_alloca_h
 
28
 
 
29
#if defined(IN_RC) || defined(IN_RING0_AGNOSTIC)
 
30
# error "No alloca() in raw-mode and agnostic ring-0 context as it may have external dependencies like libgcc."
 
31
#endif
28
32
 
29
33
/*
30
34
 * If there are more difficult platforms out there, we'll do OS
37
41
 && (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD))
38
42
/* ASSUMES GNU C */
39
43
# define alloca(cb) __builtin_alloca(cb)
 
44
 
40
45
#else
41
46
# include <stdlib.h>
42
47
# if !defined(RT_OS_DARWIN) && !defined(RT_OS_FREEBSD)