From 2b7e9ecebc78ca27d0dfdf298e133fc301bf5cf4 Mon Sep 17 00:00:00 2001
From: "ol.sc"
Date: Sat, 3 Oct 2009 11:17:39 +0000
Subject: [PATCH] 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
---
samples/sieve.c | 7 +++++++
1 file changed, 7 insertions(+)
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 */
--
2.39.5