Include config.h and use TARGET_X86 and TARGET_AMD64 instead of i386 and __x86_64__.
authorJonathan Chambers <joncham@gmail.com>
Wed, 9 May 2012 18:19:14 +0000 (14:19 -0400)
committerJonathan Chambers <joncham@gmail.com>
Wed, 9 May 2012 19:38:01 +0000 (15:38 -0400)
mono/utils/strtod.c

index fc9ad206c83b39782ef6ac3279b008de5916eff9..708e485017c1fce347a87ce877fa3937a6f76399 100644 (file)
@@ -16,6 +16,7 @@
  * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
  *
  ***************************************************************/
+#include "config.h"
 #include "strtod.h"
 #include <glib.h>
 #define freedtoa __freedtoa
  * #define NO_ERRNO if strtod should not assign errno = ERANGE when
  *     the result overflows to +-Infinity or underflows to 0.
  */
-#if defined(i386) || defined(mips) && defined(MIPSEL) || defined (__arm__)
+#if defined(TARGET_X86) || defined(mips) && defined(MIPSEL) || defined (__arm__)
 
 #   define IEEE_8087
 
-#elif defined(__x86_64__) || defined(__alpha__)
+#elif defined(TARGET_AMD64) || defined(__alpha__)
 
 #   define IEEE_8087