VirtualBox

Changeset 5485

Show
Ignore:
Timestamp:
10/24/07 18:54:08 (1 year ago)
Author:
vboxsync
Message:

Use inline with GCC instead of inline, since the latter can be disabled for C code (-ansi and others).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/cdefs.h

    r5328 r5485  
    538538 * How to declare a function as inline. 
    539539 * @param   type    The return type of the function declaration. 
     540 * @remarks Don't use this macro on C++ methods. 
    540541 */ 
    541542#ifdef __GNUC__ 
    542 # define DECLINLINE(type) static inline type 
     543# define DECLINLINE(type) static __inline__ type 
    543544#elif defined(__cplusplus) 
    544545# define DECLINLINE(type) inline type 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy