[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
signbit #define'd causes compilation error in octave
From: |
Michael Goffioul |
Subject: |
signbit #define'd causes compilation error in octave |
Date: |
Tue, 18 Oct 2011 21:51:44 +0100 |
Hi,
With a current version of gnulib and MSVC10, I get a compilation error
in octave due to signbit being #define'd by gnulib's math.h module.
The configure script ends up with GNULIB_SIGNBIT being 1 and
REPLACE_SIGNBIT being 1. This causes signbit being #define'd as
# define signbit(x) \
(sizeof (x) == sizeof (long double) ? gl_signbitl (x) : \
sizeof (x) == sizeof (double) ? gl_signbitd (x) : \
gl_signbitf (x))
The problem is that one octave file defines a class with a method
called signbit. This leads to a syntax error in the compiler. Now,
when looking signbit documentation, it looks like it should be a
macro. So is octave wrong when using signbit as a class method name?
Michael.
- signbit #define'd causes compilation error in octave,
Michael Goffioul <=