timestamp_t: a new data type for timestamps
[gitweb.git] / git-compat-util.h
index 412703b4ffb2f3061db32d5c779750d07392a882..72c12173a1488981fee6c93912a3705fc363d94a 100644 (file)
@@ -319,6 +319,11 @@ extern char *gitdirname(char *);
 #define PRIo32 "o"
 #endif
 
+typedef unsigned long timestamp_t;
+#define PRItime "lu"
+#define parse_timestamp strtoul
+#define TIME_MAX ULONG_MAX
+
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #endif
@@ -639,11 +644,6 @@ extern int gitsetenv(const char *, const char *, int);
 extern char *gitmkdtemp(char *);
 #endif
 
-#ifdef NO_MKSTEMPS
-#define mkstemps gitmkstemps
-extern int gitmkstemps(char *, int);
-#endif
-
 #ifdef NO_UNSETENV
 #define unsetenv gitunsetenv
 extern void gitunsetenv(const char *);