]> git.pond.sub.org Git - empserver/commitdiff
Switch the !__GNUC__ with _MSC_VER to be more reflective of the
authorRon Koenderink <rkoenderink@yahoo.ca>
Fri, 17 Aug 2007 20:43:32 +0000 (20:43 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Fri, 17 Aug 2007 20:43:32 +0000 (20:43 +0000)
purpose.

(strptime) [_WIN32]: Add time.h for extern prototypes.

src/lib/w32/w32misc.h

index caa32fdf605791147ad94577199fc902e950d18c..31c7575ba80058f015c42fe0e0e5813ac8f73fe3 100644 (file)
 #ifndef W32MISC_H
 #define W32MISC_H
 
-#ifndef __GNUC__
+#ifdef _MSC_VER
 /* integral mismatch, due to misuse of sector short */
 #pragma warning (disable : 4761 )
 
 /* string.h */
 #define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
-#endif /* !__GNUC__ */
+#endif /* _MSC_VER */
 
 /* stdio.h */
 #define vsnprintf _vsnprintf
@@ -56,5 +56,6 @@ typedef long ssize_t;
 typedef int pid_t;
 
 /* time.h */
+#include <time.h>
 extern char *strptime(const char *buf, const char *fmt, struct tm *tm);
 #endif /* W32MISC_H */