Permalink
Browse files

Move the choice of asctime format out of the configuration.

Its not really a config option, but a derivative.
  • Loading branch information...
1 parent 28a7e8f commit b043a7adcd14e3179af007966adcb29a4aae2035 @schwern schwern committed Feb 16, 2010
Showing with 9 additions and 6 deletions.
  1. +9 −0 time64.h
  2. +0 −6 time64_config.h
View
9 time64.h
@@ -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
View
6 time64_config.h
@@ -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.

0 comments on commit b043a7a

Please sign in to comment.