]> git.sur5r.net Git - cc65/blobdiff - samples/sieve.c
Fixed an error in the special purpose allocator in expr.c.
[cc65] / samples / sieve.c
index 7294954dccf7f52bf7245076676067fc888f667c..a82e972c9d1620a6578ea91b8b380784e3bb2968 100644 (file)
 #include <conio.h>
 
 
+/* Workaround missing clock stuff */
+#if defined(__APPLE2__) || defined(__APPLE2ENH__)
+#  define clock()              0
+#  define CLOCKS_PER_SEC       1
+#endif
+
+
 
 /*****************************************************************************/
 /*                                          Data                                    */
@@ -31,7 +38,7 @@ static unsigned char Sieve[COUNT];
 
 
 
-#pragma staticlocals(1);
+#pragma static-locals(1);