Fixed bug 3811 - change HAVE_COPYSIGN to HAVE__COPYSIGN in SDL_config_windows.h
authorSam Lantinga <slouken@libsdl.org>
Sun, 10 Sep 2017 10:30:25 -0700
changeset 11488998f992b03ed
parent 11487 bf55fefff23d
child 11489 438be648de4c
Fixed bug 3811 - change HAVE_COPYSIGN to HAVE__COPYSIGN in SDL_config_windows.h

Ozkan Sezer

The patch below changes HAVE_COPYSIGN macro in SDL_config_windows.h to
HAVE__COPYSIGN, so that _copysign() can be used in SDL_stdlib.h which
is available in many more windows-targeting toolchains such as MinGW,
MSVC >= 6, etc, and not just MSVC >= 2013. SDL_stdlib.c already has a
specific check for HAVE__COPYSIGN, so I believe this is reasonable.
include/SDL_config_windows.h
     1.1 --- a/include/SDL_config_windows.h	Sun Sep 10 10:25:36 2017 -0700
     1.2 +++ b/include/SDL_config_windows.h	Sun Sep 10 10:30:25 2017 -0700
     1.3 @@ -142,7 +142,7 @@
     1.4  #define HAVE_SQRTF 1
     1.5  #define HAVE_TAN 1
     1.6  #define HAVE_TANF 1
     1.7 -#define HAVE_COPYSIGN 1
     1.8 +#define HAVE__COPYSIGN 1
     1.9  #if defined(_MSC_VER)
    1.10  /* These functions were added with the VC++ 2013 C runtime library */
    1.11  #if _MSC_VER >= 1800