зеркало из https://github.com/mono/SkiaSharp.git
Improvements to the compat code
This commit is contained in:
Родитель
d847b70740
Коммит
7ff73a1776
|
@ -1 +1 @@
|
|||
Subproject commit 885431314fcbd2833483cf77d7fc3309e217b53f
|
||||
Subproject commit d10d96bbd5771a9f85114e336264c3b67f5dfd29
|
|
@ -40,24 +40,12 @@ BOOL WINAPI TlsFreeCompat(_In_ DWORD dwTlsIndex)
|
|||
return ::FlsFree(dwTlsIndex);
|
||||
}
|
||||
|
||||
|
||||
void ExitProcessCompat(unsigned int code)
|
||||
{
|
||||
// we can't kill in WinRT
|
||||
}
|
||||
|
||||
char *getenvCompat(const char *name)
|
||||
{
|
||||
// there is no environment in WinRT
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int WINAPI MessageBoxACompat(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType)
|
||||
{
|
||||
// TODO: implementation
|
||||
return 0;
|
||||
}
|
||||
|
||||
int WINAPI CompareStringWCompat(_In_ LCID Locale, _In_ DWORD dwCmpFlags, _In_NLS_string_(cchCount1) PCNZWCH lpString1, _In_ int cchCount1, _In_NLS_string_(cchCount2) PCNZWCH lpString2, _In_ int cchCount2)
|
||||
{
|
||||
WCHAR localeName[LOCALE_NAME_MAX_LENGTH];
|
||||
|
|
|
@ -31,39 +31,41 @@ C_PLUS_PLUS_BEGIN_GUARD
|
|||
// and there is a RUNTIME check for simd, this has to exist. As the
|
||||
// runtime check will fail, and revert to a C implementation, this is
|
||||
// not a problem to have a stub.
|
||||
|
||||
// used in: deflate.c
|
||||
unsigned int _mm_crc32_u32(unsigned int crc, unsigned int v);
|
||||
|
||||
#endif // _M_ARM
|
||||
|
||||
int WINAPI MessageBoxACompat(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType);
|
||||
// used in: dng_string.cpp
|
||||
int WINAPI CompareStringWCompat(_In_ LCID Locale, _In_ DWORD dwCmpFlags, _In_NLS_string_(cchCount1) PCNZWCH lpString1, _In_ int cchCount1, _In_NLS_string_(cchCount2) PCNZWCH lpString2, _In_ int cchCount2);
|
||||
// used in: dng_string.cpp
|
||||
UINT WINAPI GetACPCompat(void);
|
||||
// used in: dng_pthread.cpp
|
||||
HANDLE WINAPI OpenThreadCompat(_In_ DWORD dwDesiredAccess, _In_ BOOL bInheritHandle, _In_ DWORD dwThreadId);
|
||||
// used in: dng_utils.cpp
|
||||
DWORD WINAPI GetTickCountCompat(VOID);
|
||||
|
||||
// used in: dng_pthread.cpp
|
||||
DWORD WINAPI TlsAllocCompat(VOID);
|
||||
// used in: dng_pthread.cpp
|
||||
LPVOID WINAPI TlsGetValueCompat(_In_ DWORD dwTlsIndex);
|
||||
// used in: dng_pthread.cpp
|
||||
BOOL WINAPI TlsSetValueCompat(_In_ DWORD dwTlsIndex, _In_opt_ LPVOID lpTlsValue);
|
||||
// used in: dng_pthread.cpp
|
||||
BOOL WINAPI TlsFreeCompat(_In_ DWORD dwTlsIndex);
|
||||
|
||||
void ExitProcessCompat(unsigned int code);
|
||||
|
||||
// used in: jsimd_xxx.c
|
||||
char *getenvCompat(const char *name);
|
||||
|
||||
// override any previous declaration with ours
|
||||
|
||||
#define MessageBoxA MessageBoxACompat
|
||||
#define CompareStringW CompareStringWCompat
|
||||
#define GetACP GetACPCompat
|
||||
#define OpenThread OpenThreadCompat
|
||||
#define GetTickCount GetTickCountCompat
|
||||
#define ExitProcess ExitProcessCompat
|
||||
|
||||
#define TlsAlloc TlsAllocCompat
|
||||
#define TlsGetValue TlsGetValueCompat
|
||||
#define TlsSetValue TlsSetValueCompat
|
||||
#define TlsFree TlsFreeCompat
|
||||
|
||||
#define getenv getenvCompat
|
||||
|
||||
C_PLUS_PLUS_END_GUARD
|
||||
|
|
Загрузка…
Ссылка в новой задаче