assume everyone except msvc has long double (it's C99 after all)
authorMatthias Braun <matze@braunis.de>
Thu, 14 Apr 2011 10:37:45 +0000 (12:37 +0200)
committerMatthias Braun <matze@braunis.de>
Fri, 15 Apr 2011 14:11:23 +0000 (16:11 +0200)
Makefile
ir/tv/fltcalc.c
win32/config.h

index 3fffb0f..c74a65d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,6 @@ $(srcdir)config.h:
        $(Q)echo "#define libfirm_VERSION_MAJOR 1" >> $@
        $(Q)echo "#define libfirm_VERSION_MICRO 0" >> $@
        $(Q)echo "#define libfirm_VERSION_MINOR 20" >> $@
-       $(Q)echo "#define HAVE_LONG_DOUBLE 1" >> $@
 
 # libFirm
 libfirm_DIRS := \
index c8575ad..3eb14b9 100644 (file)
 
 #include "xmalloc.h"
 
-#ifndef HAVE_STRTOLD
-#define strtold(s, e) strtod(s, e)
-#endif
-
 #ifdef _MSC_VER
 #include <float.h>
 #define isnan(x)   _isnan(x)
@@ -55,6 +51,9 @@ static inline int isinf(double x)
 {
        return !_finite(x) && !_isnan(x);
 }
+#define strtold(s, e) strtod(s, e)
+#else
+#define HAVE_LONG_DOUBLE
 #endif
 
 /** The number of extra precision rounding bits */
index c0d2c5f..269327d 100644 (file)
 /* Define to disable assertion checking.  */
 /* #undef NDEBUG */
 
-/* Define to 1 if long double works and has more range or precision than
-   double. */
-/* #undef HAVE_LONG_DOUBLE */
-
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
 /* #undef WORDS_BIGENDIAN */