ntdll: Check __WINE_PE_BUILD instead of compiler macros.

Fixes compilation on Cygwin, undeclared identifiers: _alldiv, _allmul,
_allrem, _aulldiv, _aullrem.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52607
Signed-off-by: Saulius Krasuckas <saulius2@ar-fi.lt>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Saulius Krasuckas 2022-03-01 02:42:05 +02:00 committed by Alexandre Julliard
parent 0c005d1658
commit f72978ad07
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ NTSTATUS WINAPI RtlInt64ToUnicodeString(
#ifdef __i386__
/* those builtin functions use stdcall calling convention, but compilers reference them without stdcall declarations */
#if defined(__MINGW32__) || defined(_MSC_VER)
#ifdef __WINE_PE_BUILD
LONGLONG WINAPI _alldiv( LONGLONG a, LONGLONG b ) asm(__ASM_NAME("_alldiv"));
LONGLONG WINAPI _allmul( LONGLONG a, LONGLONG b ) asm(__ASM_NAME("_allmul"));
LONGLONG WINAPI _allrem( LONGLONG a, LONGLONG b ) asm(__ASM_NAME("_allrem"));