Changeset 461 for GPL/trunk/drv32/util.cpp
- Timestamp:
- Aug 24, 2009, 11:55:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/drv32/util.cpp
r63 r461 109 109 //***************************************************************************** 110 110 //***************************************************************************** 111 #if !defined(KEE) 111 112 static GINFO FAR48 *pGIS = 0; 113 #endif 112 114 //***************************************************************************** 113 115 //***************************************************************************** 116 //PS++ Begin 117 extern "C" 118 { 119 #pragma pack(1) 120 #include "infoseg.h" 121 #pragma pack() 122 extern PVOID KernSISData; 123 #define KernSISData ((struct InfoSegGDT *)&KernSISData) 124 } 114 125 ULONG os2gettimesec() 115 126 { 127 #if !defined(KEE) 116 128 APIRET rc; 117 129 FARPTR16 p; … … 127 139 } 128 140 return pGIS->Time; 141 #else 142 return KernSISData->SIS_BigTime; 143 #endif 129 144 } 130 145 //***************************************************************************** … … 132 147 ULONG os2gettimemsec() 133 148 { 149 #if !defined(KEE) 134 150 APIRET rc; 135 151 FARPTR16 p; … … 145 161 } 146 162 return pGIS->MilliSeconds; 163 #else 164 return KernSISData->SIS_MsCount; 165 #endif 147 166 } 167 //PS++ End 148 168 //***************************************************************************** 149 169 //*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.