]> git.sur5r.net Git - cc65/blobdiff - include/time.h
Merge pull request #628 from ops/VIAFIX_PET
[cc65] / include / time.h
index 507d7e29a34828f37ef18926980a602efe593076..22e24a56e0ac8d5d44be23070c893d4da3387aeb 100644 (file)
@@ -7,7 +7,7 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 1998-2012 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
+/*               Roemerstrasse 52                                            */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
@@ -81,6 +81,9 @@ extern struct _timezone {
 unsigned _clocks_per_sec (void);
 #  define CLK_TCK               _clocks_per_sec()
 #  define CLOCKS_PER_SEC        _clocks_per_sec()
+#elif defined(__ATARI5200__)
+#  define CLK_TCK               60      /* POSIX */
+#  define CLOCKS_PER_SEC        60      /* ANSI */
 #elif defined(__ATMOS__)
 #  define CLK_TCK               100     /* POSIX */
 #  define CLOCKS_PER_SEC        100     /* ANSI */
@@ -96,12 +99,19 @@ unsigned _clocks_per_sec (void);
 #elif defined(__NES__)
 #  define CLK_TCK               50      /* POSIX */
 #  define CLOCKS_PER_SEC        50      /* ANSI */
+#elif defined(__PCE__)
+#  define CLK_TCK               60      /* POSIX */
+#  define CLOCKS_PER_SEC        60      /* ANSI */
+#elif  defined(__GAMATE__)
+#  define CLK_TCK               135     /* POSIX */     /* FIXME */
+#  define CLOCKS_PER_SEC        135     /* ANSI */      /* FIXME */
 #elif  defined(__GEOS__)
 #  define CLK_TCK               1       /* POSIX */
 #  define CLOCKS_PER_SEC        1       /* ANSI */
 #elif defined(__LYNX__)
 /* The clock-rate depends on the video scan-rate;
-** so, read it at run-time. */
+** so, read it at run-time.
+*/
 extern clock_t _clk_tck (void);
 #  define CLK_TCK               _clk_tck()
 #  define CLOCKS_PER_SEC        _clk_tck()
@@ -111,10 +121,10 @@ extern clock_t _clk_tck (void);
 
 time_t _systime (void);
 /* Similar to time(), but:
- *   - Is not ISO C
- *   - Does not take the additional pointer
- *   - Does not set errno when returning -1
- */
+**   - Is not ISO C
+**   - Does not take the additional pointer
+**   - Does not set errno when returning -1
+*/
 
 /* ISO C function prototypes */
 char* __fastcall__ asctime (const struct tm* timep);