summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--win32/Makefile.sub1
-rw-r--r--win32/win32.c11
3 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c1221096b..d5c978cbf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Wed Mar 3 05:48:54 2010 Nobuyoshi Nakada <[email protected]>
+Wed Mar 3 06:19:25 2010 Nobuyoshi Nakada <[email protected]>
+
+ * win32/win32.c (signbig): defined.
* win32/Makefile.sub, symbian/setup (config.h): pack.c requires
SIZEOF_INT*_T now.
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 8f1d779207..bbca662bff 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -552,6 +552,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_COSH 1
#define HAVE_SINH 1
#define HAVE_TANH 1
+#define HAVE_SIGNBIT 1
#define HAVE_TZNAME 1
#define HAVE_DAYLIGHT 1
#define SETPGRP_VOID 1
diff --git a/win32/win32.c b/win32/win32.c
index 215752210d..54f0940250 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5272,3 +5272,14 @@ _ftol2_sse(double d)
return _ftol(d);
}
#endif
+
+int
+signbit(double x)
+{
+#ifdef _M_IX86
+ int *ip = (int *)(&x + 1) - 1;
+ return *ip < 0;
+#else
+# error not supported
+#endif
+}