added some ifdefs to make testcode compile for apple2 and atari targets

This commit is contained in:
mrdudz
2020-08-26 15:08:17 +02:00
parent d21fbed1bb
commit e5a1755133
4 changed files with 22 additions and 9 deletions

View File

@@ -84,19 +84,21 @@ int main (void)
/* Show info at start */
ShowInfo ();
#if !defined(__APPLE2__)
/* Remember the time */
T = clock ();
#endif
/* Do the tests */
FillArray ();
ShowInfo ();
FreeArray ();
ShowInfo ();
#if !defined(__APPLE2__)
/* Calculate the time and print it */
T = clock () - T;
printf ("Time needed: %lu ticks\n", T);
#endif
/* Done */
return EXIT_SUCCESS;