[New-bugs-announce] [issue42120] Depreciated MACRO of copysign for MSVC

Erjia Guan report at bugs.python.org
Thu Oct 22 15:08:50 EDT 2020


New submission from Erjia Guan <erjia at fb.com>:

At
https://github.com/python/cpython/blob/c60394c7fc9cc09b16e9675a3eeb5844b6d8523f/PC/pyconfig.h#L196, the MACRO converts copysign to _copysign. This MACRO is defined 13 years ago and it's really dangerous to define a lower-letter MACRO at this low level.
Currently, MSVC is supporting copysign (https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/copysign-copysignf-copysignl-copysign-copysignf-copysignl?view=vs-2019).
I am requesting to remove this MACRO, as my customized copysign API will also be converted to _copysign on MSVC platform.

----------
components: C API
messages: 379323
nosy: ejguan
priority: normal
severity: normal
status: open
title: Depreciated MACRO of copysign for MSVC
type: compile error
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42120>
_______________________________________


More information about the New-bugs-announce mailing list