VirtualBox

Changeset 81374 in vbox


Ignore:
Timestamp:
Oct 18, 2019 9:47:55 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134087
Message:

iprt/cdefs.h: doxygen markup interfers with @def X86, AMD64 and PRETTY_FUNCTION, as it takes the double underscores to indicate <strong>X86</strong>. Newer doxygen seems to allow \X86 and such, but the one we have on the build box doesn't grok that. So, deal with it differently to avoid build failures.

File:
1 edited

Legend:

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

    r81369 r81374  
    245245
    246246
    247 /** @def \__X86__
    248  * Indicates that we're compiling for the X86 architecture.
    249  * @deprecated
    250  */
    251 
    252 /** @def \__AMD64__
    253  * Indicates that we're compiling for the AMD64 architecture.
    254  * @deprecated
    255  */
    256247#if !defined(__X86__) && !defined(__AMD64__) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86))
    257248# if defined(RT_ARCH_AMD64)
     249/** Indicates that we're compiling for the AMD64 architecture.
     250 * @deprecated
     251 */
    258252#  define __AMD64__
    259253# elif defined(RT_ARCH_X86)
     254/** Indicates that we're compiling for the X86 architecture.
     255 * @deprecated
     256 */
    260257#  define __X86__
    261258# else
     
    37243721
    37253722
    3726 /** @def \__PRETTY_FUNCTION__
    3727  *  With GNU C we'd like to use the builtin __PRETTY_FUNCTION__, so define that
    3728  *  for the other compilers.
    3729  */
    3730 #if !defined(__GNUC__) && !defined(__PRETTY_FUNCTION__)
    3731 # ifdef _MSC_VER
     3723#if (!defined(__GNUC__) && !defined(__PRETTY_FUNCTION__)) || defined(DOXYGEN_RUNNING)
     3724# if defined(_MSC_VER) || defined(DOXYGEN_RUNNING)
     3725/** With GNU C we'd like to use the builtin __PRETTY_FUNCTION__, so define that
     3726 * for the other compilers. */
    37323727#  define __PRETTY_FUNCTION__    __FUNCSIG__
    37333728# else
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