[Kst] [Bug 218288] New: Warning of redefining isnan & isinf macros
Grégoire Verlut
gregoire.verlut at eurocopter.com
Fri Dec 11 15:51:46 CET 2009
https://bugs.kde.org/show_bug.cgi?id=218288
Summary: Warning of redefining isnan & isinf macros
Product: kst
Version: 2.0.0_devel
Platform: unspecified
OS/Version: MS Windows
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: kst at kde.org
ReportedBy: gregoire.verlut at eurocopter.com
Version: 2.0.0_devel (using unspecified)
Compiler: GNU make port to mingw32 Version: 3.81 + patches from Eli
Zaretskii (from QT Creator 1.2.1)
OS: Windows 32-Bit
In file included from ascii.cpp:38:
../../libkst/math_kst.h:82:1: warning: "isnan" redefined
In file included from ascii.cpp:21:
c:/Program/QT/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:380:1:
warning: this is the location of the previous definition
In file included from ascii.cpp:38:
../../libkst/math_kst.h:87:1: warning: "isinf" redefined
In file included from ascii.cpp:21:
c:/Program/QT/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:346:1:
warning: this is the location of the previous definition
I propose to change libkst/math_kst.h beginning from line 80:
%%%%%%%%%%%%%%%
#ifdef Q_WS_WIN32
#ifndef isnan
#define isnan _isnan
#endif
#ifndef finite
#define finite _finite
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323
#endif
#ifndef isinf
#define isinf !_finite
#endif
#endif
%%%%%%%%%%%%%%%
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kst
mailing list