From 668284362c4189f6de2c617902f73725a59adfaf Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 30 Mar 2013 09:12:49 +0300 Subject: [PATCH] Enable the 'copysign' primitive on MS-Windows. nt/inc/ms-w32.h (copysign) [_MSC_VER]: Redirect to _copysign. nt/config.nt (HAVE_COPYSIGN): Define. --- nt/ChangeLog | 6 ++++++ nt/config.nt | 2 +- nt/inc/ms-w32.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nt/ChangeLog b/nt/ChangeLog index f25aef9580c..59e8ec5b95a 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,9 @@ +2013-03-29 Eli Zaretskii + + * inc/ms-w32.h (copysign) [_MSC_VER]: Redirect to _copysign. + + * config.nt (HAVE_COPYSIGN): Define. + 2013-03-29 Juanma Barranquero * config.nt: Sync with autogen/config.in. diff --git a/nt/config.nt b/nt/config.nt index f8ed6cc3aaa..a7e2dce3e06 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -251,7 +251,7 @@ along with GNU Emacs. If not, see . */ #undef HAVE_COM_ERR_H /* Define to 1 if you have the `copysign' function. */ -#undef HAVE_COPYSIGN +#define HAVE_COPYSIGN 1 /* Define to 1 if data_start is the address of the start of the main data segment. */ diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index cd183c917c4..7b9dbc2430b 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -258,6 +258,7 @@ extern int sys_unlink (const char *); typedef int pid_t; #define snprintf _snprintf #define strtoll _strtoi64 +#define copysign _copysign #endif #define isatty _isatty #define _longjmp longjmp -- 2.39.2