Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
20ec99be
by Steve Lhomme at 2022-02-17T13:35:52-05:00
1 changed file:
Changes:
... | ... | @@ -196,7 +196,25 @@ |
196 | 196 | }
|
197 | 197 | |
198 | 198 | |
199 | -#ifdef _WIN32_WCE
|
|
199 | +#if defined( NTDDI_VERSION ) && NTDDI_VERSION < 0x0A000007 && \
|
|
200 | + defined( WINAPI_FAMILY_PARTITION ) && \
|
|
201 | + !WINAPI_FAMILY_PARTITION( WINAPI_PARTITION_DESKTOP )
|
|
202 | + |
|
203 | +#define PACK_DWORD64( hi, lo ) ( ( (DWORD64)(hi) << 32 ) | (DWORD)(lo) )
|
|
204 | + |
|
205 | +#define CreateFileW( a, b, c, d, e, f, g ) \
|
|
206 | + CreateFileFromAppW( a, b, c, d, e, f, g )
|
|
207 | +#define CreateFileMapping( a, b, c, d, e, f ) \
|
|
208 | + CreateFileMappingFromApp( a, b, c, PACK_DWORD64( d, e ), f )
|
|
209 | +#define MapViewOfFile( a, b, c, d, e ) \
|
|
210 | + MapViewOfFileFromApp( a, b, PACK_DWORD64( c, d ), e )
|
|
211 | + |
|
212 | +#define UWP_LEGACY
|
|
213 | + |
|
214 | +#endif
|
|
215 | + |
|
216 | + |
|
217 | +#if defined( _WIN32_WCE ) || defined( UWP_LEGACY )
|
|
200 | 218 | |
201 | 219 | FT_LOCAL_DEF( HANDLE )
|
202 | 220 | CreateFileA( LPCSTR lpFileName,
|