Mercurial > hg > octave-lyh > gnulib-hg
changeset 9904:d4e2e7579bab
Enable the fpucw handling also for x86_64.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 13 Apr 2008 02:26:28 +0200 |
parents | 2b821dd1563a |
children | f2fd1d89ec4b |
files | ChangeLog lib/fpucw.h |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-12 Bruno Haible <bruno@clisp.org> + + * lib/fpucw.h: Enable the definitions also for x86_64. + Needed for NetBSD/x86_64. + Reported by Thomas Klausner <tk@giga.or.at>. + 2008-04-12 Bruno Haible <bruno@clisp.org> * tests/test-strtod.c: Include isnand.h.
--- 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 <bruno@clisp.org>, 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 */