VirtualBox

Changeset 4807

Show
Ignore:
Timestamp:
09/14/07 18:10:39 (1 year ago)
Author:
vboxsync
Message:

DECLCALLBACKPTR and DECLCALLBACKMEMBER aren't supposed to be ring-3 only.

Files:

Legend:

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

    r4787 r4807  
    8383#  define RT_OS_LINUX 
    8484#  warning "__LINUX__ without RT_OS_LINUX!" 
    85 # endif  
    86 #endif  
     85# endif 
     86#endif 
    8787 
    8888/** @def RT_ARCH_X86 
     
    260260 
    261261/** @def R3R0PTRTYPE 
    262  * Declare a pointer which is used in HC, is explicitely valid in ring 3 and 0,  
    263  * but appears in structure(s) used by both HC and GC. The main purpose is to  
     262 * Declare a pointer which is used in HC, is explicitely valid in ring 3 and 0, 
     263 * but appears in structure(s) used by both HC and GC. The main purpose is to 
    264264 * make sure structures have the same size when built for different architectures. 
    265265 * 
     
    503503 * @param   name    The name of the variable member. 
    504504 */ 
    505 #ifdef IN_RING3 
    506 # define DECLCALLBACKPTR(type, name)  type (RTCALL * name) 
    507 #else 
    508 # define DECLCALLBACKPTR(type, name)  RTR3PTR name 
    509 #endif 
     505#define DECLCALLBACKPTR(type, name)  type (RTCALL * name) 
    510506 
    511507/** @def DECLCALLBACKMEMBER 
     
    514510 * @param   name    The name of the struct/union/class member. 
    515511 */ 
    516 #ifdef IN_RING3 
    517 # define DECLCALLBACKMEMBER(type, name)  type (RTCALL * name) 
    518 #else 
    519 # define DECLCALLBACKMEMBER(type, name)  RTR3PTR name 
    520 #endif 
     512#define DECLCALLBACKMEMBER(type, name)  type (RTCALL * name) 
    521513 
    522514/** @def DECLR3CALLBACKMEMBER 
     
    855847 
    856848#ifdef RT_OS_OS2 
    857 /* Undefine RT_MAX since there is an unfortunate clash with the max  
     849/* Undefine RT_MAX since there is an unfortunate clash with the max 
    858850   resource type define in os2.h. */ 
    859851# undef RT_MAX 
    860 #endif  
     852#endif 
    861853 
    862854/** @def RT_MAX 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy