kernel32: Don't use %gs on 64-bit Mac OS.
This commit is contained in:
parent
2ace215b9a
commit
193d15cc3c
|
@ -607,7 +607,7 @@ __ASM_STDCALL_FUNC( GetCurrentThreadId, 0, ".byte 0x64\n\tmovl 0x24,%eax\n\tret"
|
|||
/* HANDLE WINAPI GetProcessHeap(void) */
|
||||
__ASM_STDCALL_FUNC( GetProcessHeap, 0, ".byte 0x64\n\tmovl 0x30,%eax\n\tmovl 0x18(%eax),%eax\n\tret");
|
||||
|
||||
#elif defined(__x86_64__)
|
||||
#elif defined(__x86_64__) && !defined(__APPLE__)
|
||||
|
||||
/***********************************************************************
|
||||
* SetLastError (KERNEL32.@)
|
||||
|
|
|
@ -2783,7 +2783,7 @@ static FORCEINLINE LONG WINAPI InterlockedDecrement( LONG volatile *dest )
|
|||
|
||||
/* A few optimizations for gcc */
|
||||
|
||||
#if defined(__GNUC__) && !defined(__MINGW32__) && (defined(__i386__) || defined(__x86_64__)) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 2)))
|
||||
#if defined(__GNUC__) && !defined(__MINGW32__) && (defined(__i386__) || (defined(__x86_64__) && !defined(__APPLE__))) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 2)))
|
||||
|
||||
static FORCEINLINE DWORD WINAPI GetLastError(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue