Ignore:
Timestamp:
Jan 27, 2021, 9:35:47 AM (5 years ago)
Author:
Paul Smedley
Message:

Remove remaining support for non-KEE builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/drv32/util.c

    r587 r667  
    111111
    112112//*****************************************************************************
    113 #if !defined(KEE)
    114 static  GINFO FAR48 *pGIS = 0;
    115 #endif
    116 
    117 //*****************************************************************************
    118113//PS++ Begin
    119114#pragma pack(1)
     
    124119ULONG os2gettimesec()
    125120{
    126 #if !defined(KEE)
    127     APIRET rc;
    128     FARPTR16 p;
    129 
    130     if(pGIS == NULL) {
    131         // Build a pointer to the Global Information Segment.
    132         rc = DevGetDOSVar( DHGETDOSV_SYSINFOSEG, 0, (VOID NEAR *)&p );
    133         if (rc) {
    134             return 0;
    135         }
    136         SEL FAR48 *pSel = (SEL FAR48 *)MAKE_FARPTR32(p);
    137         pGIS = (GINFO FAR48 *)MAKE_FARPTR32((ULONG)(*pSel << 16));
    138     }
    139     return pGIS->Time;
    140 #else
    141121    return KernSISData->SIS_BigTime;
    142 #endif
    143122}
    144123
     
    146125ULONG os2gettimemsec()
    147126{
    148 #if !defined(KEE)
    149     APIRET rc;
    150     FARPTR16 p;
    151 
    152     if(pGIS == NULL) {
    153         // Build a pointer to the Global Information Segment.
    154         rc = DevGetDOSVar( DHGETDOSV_SYSINFOSEG, 0, (VOID NEAR *)&p );
    155         if (rc) {
    156             return 0;
    157         }
    158         SEL FAR48 *pSel = (SEL FAR48 *)MAKE_FARPTR32(p);
    159         pGIS = (GINFO FAR48 *)MAKE_FARPTR32((ULONG)(*pSel << 16));
    160     }
    161     return pGIS->MilliSeconds;
    162 #else
    163127    return KernSISData->SIS_MsCount;
    164 #endif
    165128}
    166129//PS++ End
Note: See TracChangeset for help on using the changeset viewer.