VirtualBox

Changeset 3673 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jul 17, 2007 2:57:51 PM (18 years ago)
Author:
vboxsync
Message:

RT_OS_* for Additions/common/

Location:
trunk/src/VBox/Additions/common/VBoxGuestLib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp

    r3466 r3673  
    2727
    2828#include <iprt/assert.h>
    29 #if !defined(__WIN__) && !defined(__LINUX__)
     29#if !defined(RT_OS_WINDOWS) && !defined(RT_OS_LINUX)
    3030#include <iprt/memobj.h>
    3131#endif
     
    3636    int rc = VINF_SUCCESS;
    3737   
    38 #ifdef __WIN__
     38#ifdef RT_OS_WINDOWS
    3939    PMDL pMdl = IoAllocateMdl (pv, u32Size, FALSE, FALSE, NULL);
    4040
     
    6060    }
    6161
    62 #elif defined(__LINUX__)
     62#elif defined(RT_OS_LINUX)
    6363    NOREF(ppvCtx);
    6464    NOREF(pv);
     
    8484    NOREF(u32Size);
    8585
    86 #ifdef __WIN__
     86#ifdef RT_OS_WINDOWS
    8787    PMDL pMdl = (PMDL)pvCtx;
    8888
     
    9393    }
    9494
    95 #elif defined(__LINUX__)
     95#elif defined(RT_OS_LINUX)
    9696    NOREF(pvCtx);
    9797
     
    107107#ifndef VBGL_VBOXGUEST
    108108
    109 #if defined (__LINUX__) && !defined (__KERNEL__)
     109#if defined (RT_OS_LINUX) && !defined (__KERNEL__)
    110110# include <unistd.h>
    111111# include <errno.h>
     
    114114#endif
    115115
    116 #ifdef __LINUX__
     116#ifdef RT_OS_LINUX
    117117__BEGIN_DECLS
    118118extern DECLVBGL(void *) vboxadd_cmc_open (void);
     
    120120extern DECLVBGL(int) vboxadd_cmc_call (void *opaque, uint32_t func, void *data);
    121121__END_DECLS
    122 #endif /* __LINUX__ */
    123 
    124 #ifdef __OS2__
     122#endif /* RT_OS_LINUX */
     123
     124#ifdef RT_OS_OS2
    125125__BEGIN_DECLS
    126126/*
     
    136136int vbglDriverOpen (VBGLDRIVER *pDriver)
    137137{
    138 #ifdef __WIN__
     138#ifdef RT_OS_WINDOWS
    139139    UNICODE_STRING uszDeviceName;
    140140    RtlInitUnicodeString (&uszDeviceName, L"\\Device\\VBoxGuest");
     
    157157    return rc;
    158158
    159 #elif defined (__LINUX__)
     159#elif defined (RT_OS_LINUX)
    160160    void *opaque;
    161161
     
    168168    return VINF_SUCCESS;
    169169
    170 #elif defined (__OS2__)
     170#elif defined (RT_OS_OS2)
    171171    /*
    172172     * Just check whether the connection was made or not.
     
    190190int vbglDriverIOCtl (VBGLDRIVER *pDriver, uint32_t u32Function, void *pvData, uint32_t cbData)
    191191{
    192 #ifdef __WIN__
     192#ifdef RT_OS_WINDOWS
    193193    IO_STATUS_BLOCK ioStatusBlock;
    194194
     
    230230    return NT_SUCCESS(rc)? VINF_SUCCESS: VERR_VBGL_IOCTL_FAILED;
    231231
    232 #elif defined (__LINUX__)
     232#elif defined (RT_OS_LINUX)
    233233    return vboxadd_cmc_call (pDriver->opaque, u32Function, pvData);
    234234
    235 #elif defined (__OS2__)
     235#elif defined (RT_OS_OS2)
    236236    if (    pDriver->u32Session
    237237        &&  pDriver->u32Session == g_VBoxGuestIDC.u32Session)
     
    248248void vbglDriverClose (VBGLDRIVER *pDriver)
    249249{
    250 #ifdef __WIN__
     250#ifdef RT_OS_WINDOWS
    251251    Log(("vbglDriverClose pDeviceObject=%x\n", pDriver->pDeviceObject));
    252252    ObDereferenceObject (pDriver->pFileObject);
    253253
    254 #elif defined (__LINUX__)
     254#elif defined (RT_OS_LINUX)
    255255    vboxadd_cmc_close (pDriver->opaque);
    256256
    257 #elif defined (__OS2__)
     257#elif defined (RT_OS_OS2)
    258258    pDriver->u32Session = 0;
    259259
  • trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h

    r3466 r3673  
    2424#define __SYSHLP__H
    2525
    26 #ifdef __WIN__
     26#ifdef RT_OS_WINDOWS
    2727# if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
    2828#  include <iprt/asm.h>
     
    4949typedef struct _VBGLDRIVER
    5050{
    51 #ifdef __WIN__
     51#ifdef RT_OS_WINDOWS
    5252    PDEVICE_OBJECT pDeviceObject;
    5353    PFILE_OBJECT pFileObject;
    54 #elif defined (__LINUX__)
     54#elif defined (RT_OS_LINUX)
    5555    void *opaque;
    56 #elif defined (__OS2__)
     56#elif defined (RT_OS_OS2)
    5757    uint32_t u32Session; /**< just for sanity checking. */
    5858#else
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.c

    r3235 r3673  
    4242    (a)->cParms      = SHFL_CPARMS_##b
    4343
    44 #ifndef __WIN__
     44#ifndef RT_OS_WINDOWS
    4545# define RtlZeroMemory(a, b) memset (a, 0, b)
    4646#endif
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h

    r3192 r3673  
    2626#include <VBox/VBoxGuestLib.h>
    2727#ifndef _NTIFS_
    28 # ifdef __WIN__
     28# ifdef RT_OS_WINDOWS
    2929#  if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
    3030#   include <iprt/asm.h>
     
    8686#define DRIVE_FLAG_WRITE_PROTECTED (0x4)
    8787
    88 #ifdef __WIN__
     88#ifdef RT_OS_WINDOWS
    8989/** Device extension structure for each drive letter we created. */
    9090typedef struct _VBSFDRIVE
     
    112112} VBSFDRIVE;
    113113typedef VBSFDRIVE *PVBSFDRIVE;
    114 #endif /* __WIN__ */
     114#endif /* RT_OS_WINDOWS */
    115115
    116116/* forward decl */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette