From: <zu...@us...> - 2015-04-18 12:23:49
|
Revision: 5200 http://sourceforge.net/p/fuse-emulator/code/5200 Author: zubzero Date: 2015-04-18 12:23:47 +0000 (Sat, 18 Apr 2015) Log Message: ----------- Fix compilation on systems without stdint.h Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/internals.h Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2015-04-12 22:07:17 UTC (rev 5199) +++ trunk/libspectrum/hacking/ChangeLog 2015-04-18 12:23:47 UTC (rev 5200) @@ -1004,3 +1004,4 @@ state (Stuart). 20150318 crypto.c,csw.c,internals.h,libspectrum.c,pzx_read.c,rzx.c,szx.c, tzx_read.c: const and static cleanups (Stuart). +20150418 internals.h: fix compilation on systems without stdint.h (Stuart). Modified: trunk/libspectrum/internals.h =================================================================== --- trunk/libspectrum/internals.h 2015-04-12 22:07:17 UTC (rev 5199) +++ trunk/libspectrum/internals.h 2015-04-18 12:23:47 UTC (rev 5200) @@ -77,6 +77,11 @@ (sizeof(a) / sizeof(*a)) \ + MUST_BE_ARRAY(a)) +/* C90 lacks SIZE_MAX. size_t is always unsigned so this is safe. */ +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif + /* VC6 lacks M_LN2, and VS2003+ require _USE_MATH_DEFINES defined before math.h */ #ifndef M_LN2 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |