Skip to content

Commit

Permalink
Move the choice of asctime format out of the configuration.
Browse files Browse the repository at this point in the history
Its not really a config option, but a derivative.
  • Loading branch information
schwern committed Feb 16, 2010
1 parent 28a7e8f commit b043a7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 additions & 0 deletions time64.h
Expand Up @@ -69,4 +69,13 @@ Time64_T timelocal64 (const struct TM *);
# define GMTIME_R(clock, result) fake_gmtime_r(clock, result)
#endif


/* Use a different asctime format depending on how big the year is */
#ifdef USE_TM64
#define TM64_ASCTIME_FORMAT "%.3s %.3s%3d %.2d:%.2d:%.2d %lld\n"
#else
#define TM64_ASCTIME_FORMAT "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n"
#endif


#endif
6 changes: 0 additions & 6 deletions time64_config.h
Expand Up @@ -29,12 +29,6 @@
*/
/* #define USE_TM64 */

#ifdef USE_TM64
#define TM64_ASCTIME_FORMAT "%.3s %.3s%3d %.2d:%.2d:%.2d %lld\n"
#else
#define TM64_ASCTIME_FORMAT "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n"
#endif


/* Availability of system functions.
Expand Down

0 comments on commit b043a7a

Please sign in to comment.