fix detection of amd64 on VC and avoid 64-bit warning

This was SVN commit r6197.
This commit is contained in:
janwas 2008-07-04 19:10:09 +00:00
parent 5b757e536f
commit 11b308c347
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@
# define ARCH_IA64 0
#endif
// .. AMD64
#if defined(_M_AMD64) || defined(__amd64__) || defined(__amd64)
#if defined(_M_X64) || defined(__amd64__) || defined(__amd64)
# define ARCH_AMD64 1
#else
# define ARCH_AMD64 0

View File

@ -11,6 +11,7 @@
#ifndef INCLUDED_COMPILER
#define INCLUDED_COMPILER
#include "lib/sysdep/arch.h" // ARCH_AMD64
#include "lib/config.h" // CONFIG_OMIT_FP
@ -44,7 +45,7 @@
// pass "omit frame pointer" setting on to the compiler
#if MSC_VERSION
#if MSC_VERSION && !ARCH_AMD64
# if CONFIG_OMIT_FP
# pragma optimize("y", on)
# else