Fix #if macros for idx64 and id386
This commit is contained in:
parent
a5035841d2
commit
a447aa82af
6 changed files with 53 additions and 47 deletions
|
@ -24,6 +24,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#define __Q_PLATFORM_H
|
||||
|
||||
// this is for determining if we have an asm version of a C function
|
||||
#define idx64 0
|
||||
|
||||
#ifdef Q3_VM
|
||||
|
||||
#define id386 0
|
||||
|
@ -76,7 +78,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#if defined(_WIN64) || defined(__WIN64__)
|
||||
|
||||
#define idx64
|
||||
#undef idx64
|
||||
#define idx64 1
|
||||
|
||||
#undef QDECL
|
||||
#define QDECL __cdecl
|
||||
|
@ -146,7 +149,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#define ARCH_STRING "i386"
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#elif defined __x86_64__
|
||||
#define idx64
|
||||
#undef idx64
|
||||
#define idx64 1
|
||||
#define ARCH_STRING "x86_64"
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
@ -173,7 +177,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#if defined __i386__
|
||||
#define ARCH_STRING "i386"
|
||||
#elif defined __x86_64__
|
||||
#define idx64
|
||||
#undef idx64
|
||||
#define idx64 1
|
||||
#define ARCH_STRING "x86_64"
|
||||
#elif defined __powerpc64__
|
||||
#define ARCH_STRING "ppc64"
|
||||
|
@ -236,7 +241,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#ifdef __i386__
|
||||
#define ARCH_STRING "i386"
|
||||
#elif defined __amd64__
|
||||
#define idx64
|
||||
#undef idx64
|
||||
#define idx64 1
|
||||
#define ARCH_STRING "amd64"
|
||||
#elif defined __axp__
|
||||
#define ARCH_STRING "alpha"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue