qmath.h: clean up inclusions
We can remove some preprocessor provisions around #include <cmath>: they're ineffective because <cmath> is actually already included indirectly (qmath.h -> qglobal.h -> qnumeric.h -> cmath). Leave the inclusion to honor IWYU, but remove the defines around it as they're apparently not necessary at all. While at it, explicitly include qnumeric.h because it's used (for instance, the qIs* fp classification functions called by qmath.h are declared in qnumeric.h). Change-Id: I7d5bf67f518ffd73c81dd78b2bf108df6bbb8186 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
5c9fd486ae
commit
329a2349ae
@ -10,23 +10,14 @@
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
#include <QtCore/qalgorithms.h>
|
||||
#include <QtCore/qnumeric.h>
|
||||
|
||||
#if __has_include(<bit>) && __cplusplus > 201703L
|
||||
#include <bit>
|
||||
#endif
|
||||
|
||||
#ifndef _USE_MATH_DEFINES
|
||||
# define _USE_MATH_DEFINES
|
||||
# define undef_USE_MATH_DEFINES
|
||||
#endif
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#ifdef undef_USE_MATH_DEFINES
|
||||
# undef _USE_MATH_DEFINES
|
||||
# undef undef_USE_MATH_DEFINES
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#define QT_SINE_TABLE_SIZE 256
|
||||
|
Loading…
x
Reference in New Issue
Block a user