--- portab.h 2005/01/05 23:02:15 1.54 +++ portab.h 2008/11/27 16:31:48 1.58 @@ -21,7 +21,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: portab.h,v 1.54 2005/01/05 23:02:15 edgomez Exp $ + * $Id: portab.h,v 1.58 2008/11/27 16:31:48 Isibaar Exp $ * ****************************************************************************/ @@ -75,6 +75,7 @@ # define CACHE_LINE 64 # define ptr_t uint32_t # define intptr_t int32_t +# define _INTPTR_T_DEFINED # if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER) # include # else @@ -84,6 +85,7 @@ # define CACHE_LINE 64 # define ptr_t uint64_t # define intptr_t int64_t +# define _INTPTR_T_DEFINED # if defined (_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER) # include # else @@ -130,7 +132,7 @@ va_start(args, fmt); vsprintf(buf, fmt, args); va_end(args); - OutputDebugString(buf); + OutputDebugStringA(buf); fprintf(stderr, "%s", buf); } } @@ -291,8 +293,8 @@ *---------------------------------------------------------------------------*/ # elif defined(ARCH_IS_IA64) # define BSWAP(a) __asm__ __volatile__ \ - ("mux1 %1 = %0, @rev" ";;" \ - "shr.u %1 = %1, 32" : "=r" (a) : "r" (a)); + ("mux1 %0 = %1, @rev" ";;" \ + "shr.u %0 = %0, 32" : "=r" (a) : "r" (a)); static __inline int64_t read_counter(void) { @@ -358,7 +360,7 @@ /*---------------------------------------------------------------------------- | watcom ia32 specific macros/functions *---------------------------------------------------------------------------*/ -# if defined(ARCH_IS_IA32) +# if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64) # define BSWAP(a) __asm mov eax,a __asm bswap eax __asm mov a, eax