Commit 81cba2af authored by Alexandre Julliard's avatar Alexandre Julliard

include: Disable some inline kernelbase functions when building Unix libraries.

parent 02972b53
......@@ -2950,7 +2950,14 @@ extern char * CDECL wine_get_unix_file_name( LPCWSTR dos );
extern WCHAR * CDECL wine_get_dos_file_name( LPCSTR str );
#ifdef __WINESRC__
#ifdef WINE_UNIX_LIB
#define GetCurrentProcess() NtCurrentProcess()
#define GetCurrentThread() NtCurrentThread()
#define GetCurrentProcessId() HandleToULong(NtCurrentTeb()->ClientId.UniqueProcess)
#define GetCurrentThreadId() HandleToULong(NtCurrentTeb()->ClientId.UniqueThread)
#elif defined(__WINESRC__)
static FORCEINLINE HANDLE WINAPI GetCurrentProcess(void)
{
......
......@@ -4712,7 +4712,8 @@ NTSYSAPI NTSTATUS WINAPI wine_unix_to_nt_file_name( const char *name, WCHAR *buf
(p)->SecurityQualityOfService = NULL; \
} while (0)
#define NtCurrentProcess() ((HANDLE)-1)
#define NtCurrentProcess() ((HANDLE)~(ULONG_PTR)0)
#define NtCurrentThread() ((HANDLE)~(ULONG_PTR)1)
#define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
#define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment