VirtualBox

Changeset 40508 in vbox for trunk


Ignore:
Timestamp:
Mar 16, 2012 10:18:47 PM (13 years ago)
Author:
vboxsync
Message:

iprt/stdarg.h: Workaround for 3.4.x biased system headers in solaris 11 that uses a gcc builtin that is no longer available starting 4.4.0 (IIRC).

File:
1 edited

Legend:

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

    r28800 r40508  
    44
    55/*
    6  * Copyright (C) 2006-2007 Oracle Corporation
     6 * Copyright (C) 2006-2012 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2727#define ___iprt_stdarg_h
    2828
    29 #if    !defined(IPRT_NO_CRT) \
    30     && !(defined(RT_OS_FREEBSD) && defined(_KERNEL))
    31 
    32 # include <stdarg.h>
    33 #elif defined(RT_OS_FREEBSD) && defined(_KERNEL)
    34 # include <machine/stdarg.h>
    35 #else
     29#ifdef IPRT_NO_CRT
    3630# include <iprt/types.h>
    3731# include <iprt/nocrt/compiler/compiler.h>
     32#undef va_start
     33#define va_start 4
     34#else
     35# include <iprt/cdefs.h>
     36#undef va_start
     37#define va_start 1
     38# if defined(RT_OS_FREEBSD) && defined(_KERNEL)
     39#  include <machine/stdarg.h>
     40# elif defined(RT_OS_SOLARIS) && defined(_KERNEL) && defined(__GNUC__)
     41#  include <stdarg.h>
     42#  if __GNUC__ >= 4 /* System headers refers to __builtin_stdarg_start. */
     43#   define __builtin_stdarg_start __builtin_va_start
     44#  endif
     45# else
     46#  include <stdarg.h>
     47# endif
    3848#endif
    3949
Note: See TracChangeset for help on using the changeset viewer.

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