mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 00:31:27 +00:00
[CRT][GDI32] Introduce atan2 library, use it for gdi32 to fix a crash. CORE-11521
As suggested by Thomas :) svn path=/trunk/; revision=71985
This commit is contained in:
parent
0ee9e9b016
commit
517ee59e43
3 changed files with 17 additions and 17 deletions
|
@ -66,3 +66,19 @@ add_library(strtol
|
|||
string/wctype.c)
|
||||
add_target_compile_definitions(strtol _LIBCNT_)
|
||||
add_dependencies(strtol psdk)
|
||||
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
list(APPEND ATAN2_ASM_SOURCE math/i386/atan2_asm.s)
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
list(APPEND ATAN2_ASM_SOURCE math/amd64/atan2.S)
|
||||
elseif(ARCH STREQUAL "arm")
|
||||
list(APPEND ATAN2_ASM_SOURCE math/arm/atan2.s)
|
||||
endif()
|
||||
|
||||
add_asm_files(atan2_asm ${ATAN2_ASM_SOURCE})
|
||||
add_library(atan2 ${atan2_asm})
|
||||
set_target_properties(atan2 PROPERTIES LINKER_LANGUAGE "C")
|
||||
add_dependencies(atan2 asm)
|
||||
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ target_link_libraries(gdi32
|
|||
win32ksys
|
||||
dxguid
|
||||
msvcrtex
|
||||
atan2
|
||||
${PSEH_LIB})
|
||||
|
||||
add_importlibs(gdi32 user32 advapi32 kernel32 ntdll)
|
||||
|
|
|
@ -520,23 +520,6 @@ _assert (
|
|||
DbgRaiseAssertionFailure();
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER) && (DBG != 1)
|
||||
|
||||
/* MSVC uses its own in this case. */
|
||||
#else
|
||||
|
||||
double
|
||||
__cdecl
|
||||
atan2(
|
||||
double y,
|
||||
double x)
|
||||
{
|
||||
__debugbreak();
|
||||
return 0.;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
static
|
||||
|
|
Loading…
Reference in a new issue