From 1bae0d6cb8f45037138e0e5a7776724f4ef73f11 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Fri, 8 May 2009 18:40:32 +0000 Subject: [PATCH] changed: in ttmathtypes.h 'typedef unsigned long long int ulint' has been put inside '#ifdef TTMATH_NOASM' in order to not confuse a compiler while compiling with strict iso c++ (errors about not defining 'long long' in the c++ standard) git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@137 e52654a7-88a9-db11-a3e9-0013d4bc506e --- ttmath/ttmathtypes.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ttmath/ttmathtypes.h b/ttmath/ttmathtypes.h index be98f12..0b9ed76 100644 --- a/ttmath/ttmathtypes.h +++ b/ttmath/ttmathtypes.h @@ -120,7 +120,6 @@ namespace ttmath typedef unsigned int uint; typedef signed int sint; - /*! this type is twice bigger than uint (64bit on a 32bit platforms) @@ -129,8 +128,11 @@ namespace ttmath but it is defined in C99 and in upcoming C++0x /3.9.1 (2)/ and many compilers support it this type is used in UInt::MulTwoWords and UInt::DivTwoWords when macro TTMATH_NOASM is defined + but only on a 32bit platform */ - typedef unsigned long long int ulint; + #ifdef TTMATH_NOASM + typedef unsigned long long int ulint; + #endif /*! how many bits there are in the uint type