From 27a6f11c3076651f2a838bac313a09dd470736d8 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 24 Jan 2008 18:35:00 +0000 Subject: More ticket #61: error detecting CPU type in srtp_config.h causing libsrtp initialization error git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1740 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/build/srtp/srtp_config.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'third_party') diff --git a/third_party/build/srtp/srtp_config.h b/third_party/build/srtp/srtp_config.h index 6d1cfcfc..1cf844ee 100644 --- a/third_party/build/srtp/srtp_config.h +++ b/third_party/build/srtp/srtp_config.h @@ -22,9 +22,13 @@ #include /* We'll just define CISC if it's x86 family */ -#if (defined(PJ_M_I386) && PJ_M_I386!=0) || \ - (defined(PJ_M_X86_64) && PJ_M_X86_64!=0) || \ - (defined(PJ_M_IA64) && PJ_M_IA64!=0) +#if defined (PJ_M_I386) || defined(_i386_) || defined(i_386_) || \ + defined(_X86_) || defined(x86) || defined(__i386__) || \ + defined(__i386) || defined(_M_IX86) || defined(__I86__) || \ + defined (PJ_M_X86_64) || defined(__amd64__) || defined(__amd64) || \ + defined(__x86_64__) || defined(__x86_64) || \ + defined(PJ_M_IA64) || defined(__ia64__) || defined(_IA64) || \ + defined(__IA64__) || defined(_M_IA64) # define CPU_CISC 1 /* # define HAVE_X86 1 use X86 inlined assembly code */ #else @@ -113,7 +117,8 @@ typedef pj_int64_t int64_t; #endif -#define SIZEOF_UNSIGNED_LONG 8 +/* These shouldn't really matter as long as HAVE_UINT64_T is set */ +#define SIZEOF_UNSIGNED_LONG (sizeof(unsigned long)) #define SIZEOF_UNSIGNED_LONG_LONG 8 -- cgit v1.2.3