forked from 0ad/0ad
fix detection of amd64 on VC and avoid 64-bit warning
This was SVN commit r6197.
This commit is contained in:
parent
5b757e536f
commit
11b308c347
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user