From c85e0ca93b9cc21638c9089ca76f96881f5de786 Mon Sep 17 00:00:00 2001 From: vl Date: Mon, 10 May 2010 17:59:13 +0200 Subject: [PATCH] Fixed: #853 problem with crypt function under 64b system. patch by ratmice --- code/ryzom/common/src/game_share/crypt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/common/src/game_share/crypt.cpp b/code/ryzom/common/src/game_share/crypt.cpp index 186db47c7..42a55e081 100644 --- a/code/ryzom/common/src/game_share/crypt.cpp +++ b/code/ryzom/common/src/game_share/crypt.cpp @@ -116,7 +116,7 @@ static char rz_sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93"; * define "LONG_IS_32_BITS" only if sizeof(long)==4. * This avoids use of bit fields (your compiler may be sloppy with them). */ -#if !defined(cray) +#if !defined(cray) && !defined(__LP64__) && !defined(_LP64) #define LONG_IS_32_BITS #endif @@ -124,7 +124,7 @@ static char rz_sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93"; * define "B64" to be the declaration for a 64 bit integer. * XXX this feature is currently unused, see "endian" comment below. */ -#if defined(cray) +#if defined(cray) || defined(__LP64__) || defined(_LP64) #define B64 long #endif #if defined(convex)