From: <bi...@us...> - 2007-09-22 23:13:46
|
Revision: 788 http://oorexx.svn.sourceforge.net/oorexx/?rev=788&view=rev Author: bigrixx Date: 2007-09-22 16:13:50 -0700 (Sat, 22 Sep 2007) Log Message: ----------- Yet more compilation fix attempts. Modified Paths: -------------- interpreter-3.x/trunk/kernel/platform/unix/PlatformDefinitions.h interpreter-3.x/trunk/kernel/runtime/Numerics.cpp Modified: interpreter-3.x/trunk/kernel/platform/unix/PlatformDefinitions.h =================================================================== --- interpreter-3.x/trunk/kernel/platform/unix/PlatformDefinitions.h 2007-09-22 22:54:17 UTC (rev 787) +++ interpreter-3.x/trunk/kernel/platform/unix/PlatformDefinitions.h 2007-09-22 23:13:50 UTC (rev 788) @@ -59,6 +59,10 @@ #define TOTAL_STACK_SIZE 1024*512 #define C_STACK_SIZE TOTAL_STACK_SIZE +// The limit values for the portable int types are only included in C++ if the +following is defined before including stdint.h. +#define __STDC_LIMIT_MACROS + #include "stdint.h" Modified: interpreter-3.x/trunk/kernel/runtime/Numerics.cpp =================================================================== --- interpreter-3.x/trunk/kernel/runtime/Numerics.cpp 2007-09-22 22:54:17 UTC (rev 787) +++ interpreter-3.x/trunk/kernel/runtime/Numerics.cpp 2007-09-22 23:13:50 UTC (rev 788) @@ -64,8 +64,6 @@ // for the full binary value range stringsize_t Numerics::ARGUMENT_DIGITS = ((stringsize_t)10); #endif -stringsize_t Numerics::MAX_STRINGSIZE = SIZE_MAX; - // max numeric digits value for explicit 64-bit conversions stringsize_t Numerics::DIGITS64 = ((stringsize_t)20); bool Numerics::FORM_SCIENTIFIC = false; @@ -128,7 +126,7 @@ RexxObject *Numerics::toObject(stringsize_t v) { // in the range for an integer object? - if (v <= (uintptr_t)MAX_WHOLENUMBER) + if (v <= (stringsize_t)MAX_WHOLENUMBER) { return new_integer((stringsize_t)v); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |