Mercurial > hg > octave-nkf
diff oct-conf-post.in.h @ 17993:ac9fd5010620
avoid including gnulib header in installed Octave header file (bug #40607)
* oct-conf-post.in.h
(OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED): New macro.
* oct-inttypes.h, oct-inttypes.cc: Don't include fpucw.h from gnulib
or the macros it defines. In functions that need to ensure that long
double operations are not truncated to double precision, use external
functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 23 Nov 2013 20:28:46 -0500 |
parents | d63878346099 |
children | 79653c5b6147 |
line wrap: on
line diff
--- a/oct-conf-post.in.h +++ b/oct-conf-post.in.h @@ -107,7 +107,11 @@ them at least 80 bits wide and we need roundl declared in math.h. FIXME: Maybe substitute this by a more precise check in the future? */ #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL) -#define OCTAVE_INT_USE_LONG_DOUBLE +# define OCTAVE_INT_USE_LONG_DOUBLE +# if (SIZEOF_LONG_DOUBLE == 10 \ + && (defined __i386__ || defined __x86_64__) && defined __GNUC__) +#define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1 +# endif #endif #define OCTAVE_EMPTY_CPP_ARG