Ignore:
Timestamp:
Mar 3, 2000, 12:14:24 PM (25 years ago)
Author:
sandervl
Message:

updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/os2wrap.h

    r2080 r2982  
    1 /* $Id: os2wrap.h,v 1.13 1999-12-15 09:25:12 achimha Exp $ */
     1/* $Id: os2wrap.h,v 1.14 2000-03-03 11:14:22 sandervl Exp $ */
    22#ifndef __OS2WRAP_H__
    33#define __OS2WRAP_H__
     
    88
    99#if (__IBMC__ > 300)
    10 // VA3.6: inline is a C++ keywork, must be translated to _inline or _Inline or __inline in C code
     10// VA3.6: inline is a C++ keyword, must be translated to _inline or _Inline or __inline in C code
    1111#define inline _inline
    1212#endif
    1313
    1414#ifdef INCL_DOSMEMMGR
     15
     16APIRET APIENTRY DosAliasMem(PVOID pb, ULONG cb, PPVOID ppbAlias, ULONG fl);
     17
     18inline APIRET _DosAliasMem(PVOID pb, ULONG cb, PPVOID ppbAlias, ULONG fl)
     19{
     20 APIRET yyrc;
     21 USHORT sel = RestoreOS2FS();
     22
     23    yyrc = DosAliasMem(pb, cb, ppbAlias, fl);
     24    SetFS(sel);
     25
     26    return yyrc;
     27}
     28
     29#undef  DosAliasMem
     30#define DosAliasMem _DosAliasMem
     31
    1532inline ULONG _DosAllocMem(PPVOID a, ULONG b, ULONG c)
    1633{
Note: See TracChangeset for help on using the changeset viewer.