VirtualBox

Changeset 66111 in vbox for trunk


Ignore:
Timestamp:
Mar 15, 2017 2:07:18 PM (8 years ago)
Author:
vboxsync
Message:

bs3kit: work around va_list trouble with 64-bit gcc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r66053 r66111  
    3838#endif
    3939
     40
     41/*
     42 * Work around ms_abi trouble in the gcc camp (gcc bugzilla #50818).
     43 * ASSUMES all va_lists are in functions with
     44 */
     45#if defined(__GNUC__) && ARCH_BITS == 64
     46# undef  va_list
     47# undef  va_start
     48# undef  va_end
     49# undef  va_copy
     50# define va_list                    __builtin_ms_va_list
     51# define va_start(a_Va, a_Arg)      __builtin_ms_va_start(a_Va, a_Arg)
     52# define va_end(a_Va)               __builtin_ms_va_end(a_Va)
     53# define va_copy(a_DstVa, a_SrcVa)  __builtin_ms_va_copy(a_DstVa, a_SrcVa)
     54#endif
    4055
    4156
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