VirtualBox

Changeset 309 in vbox


Ignore:
Timestamp:
Jan 25, 2007 3:57:38 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17858
Message:

DECLINLINE is supposed to be static of course.

Location:
trunk
Files:
3 edited

Legend:

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

    r1 r309  
    430430 * @param   type    The return type of the function declaration.
    431431 */
    432 #ifdef __cplusplus
     432#ifdef __GNUC__
     433# define DECLINLINE(type) static inline type
     434#elif defined(__cplusplus)
    433435# define DECLINLINE(type) inline type
    434 #else
    435 # ifdef __GNUC__
    436 #  define DECLINLINE(type) static inline type
    437 # elif defined(_MSC_VER)
    438 #  define DECLINLINE(type) _inline type
    439 # else
    440 #  define DECLINLINE(type) inline type
    441 # endif
     436#elif defined(_MSC_VER)
     437# define DECLINLINE(type) _inline type
     438#else
     439# define DECLINLINE(type) inline type
    442440#endif
    443441
     
    459457/** @def IN_RT_R3
    460458 * Used to indicate whether we're inside the same link module as
    461  * the HC Ring-3 Runtime Library.
     459 * the HC Ring-3 Runtime Library. 
    462460 */
    463461/** @def RTR3DECL(type)
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp

    r301 r309  
    7272}
    7373
    74 static DECLINLINE(int) vbglHandleHeapEnter (void)
     74DECLINLINE(int) vbglHandleHeapEnter (void)
    7575{
    7676    int rc = RTSemFastMutexRequest(g_vbgldata.mutexHGCMHandle);
     
    8282}
    8383
    84 static DECLINLINE(void) vbglHandleHeapLeave (void)
     84DECLINLINE(void) vbglHandleHeapLeave (void)
    8585{
    8686    RTSemFastMutexRelease(g_vbgldata.mutexHGCMHandle);
  • trunk/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.cpp

    r295 r309  
    156156
    157157
    158 static DECLINLINE(void *) vbglPhysHeapBlock2Data (VBGLPHYSHEAPBLOCK *pBlock)
     158DECLINLINE(void *) vbglPhysHeapBlock2Data (VBGLPHYSHEAPBLOCK *pBlock)
    159159{
    160160    return (void *)(pBlock? (char *)pBlock + sizeof (VBGLPHYSHEAPBLOCK): NULL);
    161161}
    162162
    163 static DECLINLINE(VBGLPHYSHEAPBLOCK *) vbglPhysHeapData2Block (void *p)
     163DECLINLINE(VBGLPHYSHEAPBLOCK *) vbglPhysHeapData2Block (void *p)
    164164{
    165165    VBGLPHYSHEAPBLOCK *pBlock = (VBGLPHYSHEAPBLOCK *)(p? (char *)p - sizeof (VBGLPHYSHEAPBLOCK): NULL);
     
    171171}
    172172
    173 static DECLINLINE(int) vbglPhysHeapEnter (void)
     173DECLINLINE(int) vbglPhysHeapEnter (void)
    174174{
    175175    int rc = RTSemFastMutexRequest(g_vbgldata.mutexHeap);
     
    181181}
    182182
    183 static DECLINLINE(void) vbglPhysHeapLeave (void)
     183DECLINLINE(void) vbglPhysHeapLeave (void)
    184184{
    185185    RTSemFastMutexRelease(g_vbgldata.mutexHeap);
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