VirtualBox

Changeset 33871 in vbox for trunk/include


Ignore:
Timestamp:
Nov 8, 2010 7:48:22 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67517
Message:

play safe

File:
1 edited

Legend:

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

    r33870 r33871  
    100100#  include <linux/stddef.h>
    101101#  undef uintptr_t
    102 #  if (__GNUC__ * 100 + __GNUC_MINOR__) <= 400
    103     /*
    104      * <linux/compiler-gcc{3,4}.h> does
    105      *   #define __inline__  __inline__ __attribute__((always_inline))
    106      * in some older Linux kernels. Forcing inlining will fail for some RTStrA*
    107      * functions with gcc <= 4.0 due to passing variable argument lists.
    108      */
    109 #   undef __inline__
    110 #   define __inline__ __inline__
     102#  ifdef __GNUC__
     103#   if (__GNUC__ * 100 + __GNUC_MINOR__) <= 400
     104     /*
     105      * <linux/compiler-gcc{3,4}.h> does
     106      *   #define __inline__  __inline__ __attribute__((always_inline))
     107      * in some older Linux kernels. Forcing inlining will fail for some RTStrA*
     108      * functions with gcc <= 4.0 due to passing variable argument lists.
     109      */
     110#    undef __inline__
     111#    define __inline__ __inline__
     112#   endif
    111113#  endif
    112114#  undef false
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