From: ol.sc Date: Sat, 3 Oct 2009 11:17:39 +0000 (+0000) Subject: Made compatible with the Apple ][ machines, but without timing (like mandelbrot). X-Git-Tag: V2.13.0~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b7e9ecebc78ca27d0dfdf298e133fc301bf5cf4;p=cc65 Made compatible with the Apple ][ machines, but without timing (like mandelbrot). git-svn-id: svn://svn.cc65.org/cc65/trunk@4315 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/samples/sieve.c b/samples/sieve.c index 7294954dc..ada8a37b1 100644 --- a/samples/sieve.c +++ b/samples/sieve.c @@ -11,6 +11,13 @@ #include +/* Workaround missing clock stuff */ +#if defined(__APPLE2__) || defined(__APPLE2ENH__) +# define clock() 0 +# define CLOCKS_PER_SEC 1 +#endif + + /*****************************************************************************/ /* Data */