From: Bruno Haible Date: Sun, 13 Apr 2008 00:26:28 +0000 (+0200) Subject: Enable the fpucw handling also for x86_64. X-Git-Tag: v0.1~7566 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=35dda7458879acb367f2cba0aaf7856cd98f5b63;p=gnulib.git Enable the fpucw handling also for x86_64. --- diff --git a/ChangeLog b/ChangeLog index 8fbce5a42..a851e7c73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-04-12 Bruno Haible + * lib/fpucw.h: Enable the definitions also for x86_64. + Needed for NetBSD/x86_64. + Reported by Thomas Klausner . + +2008-04-12 Bruno Haible + * tests/test-strtod.c: Include isnand.h. (main): Use isnand instead of isnan. Reported by Jim Meyering. diff --git a/lib/fpucw.h b/lib/fpucw.h index d5c2b62f7..a6226afcf 100644 --- a/lib/fpucw.h +++ b/lib/fpucw.h @@ -1,5 +1,5 @@ /* Manipulating the FPU control word. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@ -61,7 +61,7 @@ */ /* Inline assembler like this works only with GNU C. */ -#if defined __i386__ && defined __GNUC__ +#if (defined __i386__ || defined __x86_64__) && defined __GNUC__ typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */