VirtualBox

Changeset 58702 in vbox


Ignore:
Timestamp:
Nov 16, 2015 4:22:39 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104129
Message:

iprt/cdefs.h: Introduced RT_FAR_DATA for 16-bit code and adjusted RT_INLINE_ASM_EXTERNAL and RT_INLINE_ASM_GNU_STYLE for Watcom C/C++.

File:
1 edited

Legend:

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

    r58623 r58702  
    27212721 */
    27222722#if (defined(_MSC_VER) && defined(RT_ARCH_AMD64)) \
    2723  || (!defined(RT_ARCH_AMD64) && !defined(RT_ARCH_X86))
     2723 || (!defined(RT_ARCH_AMD64) && !defined(RT_ARCH_X86)) \
     2724 || defined(__WATCOMC__)
    27242725# define RT_INLINE_ASM_EXTERNAL 1
    27252726#else
     
    27302731 * Defined as 1 if the compiler understands GNU style inline assembly.
    27312732 */
    2732 #if defined(_MSC_VER)
     2733#if defined(_MSC_VER) || defined(__WATCOMC__)
    27332734# define RT_INLINE_ASM_GNU_STYLE 0
    27342735#else
     
    27632764#elif defined(__GNUC__) && defined(__cplusplus)
    27642765/* 4.5 or later, I think, if in ++11 mode... */
     2766#endif
     2767
     2768/** @def RT_FAR_DATA
     2769 * Set to 1 if we're in 16-bit mode and use far pointers.
     2770 */
     2771#if ARCH_BITS == 16 && defined(__WATCOMC__) \
     2772  && (defined(__COMPACT__) || defined(__LARGE__))
     2773# define RT_FAR_DATA 1
     2774#else
     2775# define RT_FAR_DATA 0
    27652776#endif
    27662777
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