VirtualBox

Changeset 94281 in vbox for trunk


Ignore:
Timestamp:
Mar 17, 2022 1:51:55 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150545
Message:

iprt/alloca.h: Try shut up annoying sys/regset.h (via stdlib.h) pollution on solaris. bugref:9781

File:
1 edited

Legend:

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

    r93115 r94281  
    5858#  include <alloca.h>
    5959# endif
     60
     61# if defined(RT_OS_SOLARIS) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) \
     62  && defined(_SYS_REGSET_H) && !defined(IPRT_NO_SOLARIS_UCONTEXT_CLEANUPS)
     63/* Solaris' sys/regset.h pollutes the namespace with register constants that
     64   frequently conflicts with structure members and variable/parameter names.  */
     65#  undef CS
     66#  undef DS
     67#  undef EAX
     68#  undef EBP
     69#  undef EBX
     70#  undef ECX
     71#  undef EDI
     72#  undef EDX
     73#  undef EFL
     74#  undef EIP
     75#  undef ERR
     76#  undef ES
     77#  undef ESI
     78#  undef ESP
     79#  undef FS
     80#  undef GS
     81#  undef SS
     82#  undef TRAPNO
     83#  undef UESP
     84# endif
    6085#endif
    6186
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