VirtualBox

Changeset 33870 in vbox for trunk/include


Ignore:
Timestamp:
Nov 8, 2010 7:39:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67516
Message:

iprt/types.h: added workaround for define inline inline attribute((always_inline)) causing problems with older gcc versions

File:
1 edited

Legend:

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

    r31788 r33870  
    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__
     111#  endif
    102112#  undef false
    103113#  undef true
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