rtapi_math: drop unneeded gcc version check
As documented at http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MinimumSoftwareVersions the oldest platform we're likely to target with linuxcnc 2.7 is Ubuntu 10.04 with gcc 4.4.
This commit is contained in:
parent
ec38ac4566
commit
fdb2d643d1
1 changed files with 0 additions and 15 deletions
|
|
@ -46,22 +46,7 @@ extern double floor(double);
|
||||||
#define M_PI 3.1415926535897932384626433832795029 /* pi */
|
#define M_PI 3.1415926535897932384626433832795029 /* pi */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __GNUC_PREREQ
|
|
||||||
/* Convenience macro to test the versions of glibc and gcc. */
|
|
||||||
/* taken from include/features.h */
|
|
||||||
#if defined __GNUC__ && defined __GNUC_MINOR__
|
|
||||||
# define __GNUC_PREREQ(maj, min) \
|
|
||||||
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
|
||||||
#else
|
|
||||||
# define __GNUC_PREREQ(maj, min) 0
|
|
||||||
#endif
|
|
||||||
#endif /* __GNUC_PREREQ */
|
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,4)
|
|
||||||
#define isinf(x) __builtin_isinf((x))
|
#define isinf(x) __builtin_isinf((x))
|
||||||
#else
|
|
||||||
#define isinf(x) ({ double v=((x)); !isnan(v) && isnan(v-v); })
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
#include "rtapi_math_i386.h"
|
#include "rtapi_math_i386.h"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue