]> git.pond.sub.org Git - empserver/commitdiff
(strptime) [_WIN32]: Postpone the declaration of the struct tm for strptime().
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 19 Aug 2007 01:47:43 +0000 (01:47 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 19 Aug 2007 01:47:43 +0000 (01:47 +0000)
Pick up the declaration for struct tm when time.h is included in the source file.

src/lib/w32/w32misc.h

index 31c7575ba80058f015c42fe0e0e5813ac8f73fe3..3df65eb16c164ec9b2b20d859839958ae0845d14 100644 (file)
@@ -56,6 +56,6 @@ typedef long ssize_t;
 typedef int pid_t;
 
 /* time.h */
-#include <time.h>
+struct tm;
 extern char *strptime(const char *buf, const char *fmt, struct tm *tm);
 #endif /* W32MISC_H */