Switch the !__GNUC__ with _MSC_VER to be more reflective of the
purpose. (strptime) [_WIN32]: Add time.h for extern prototypes.
This commit is contained in:
parent
01625ead8c
commit
3c7bb12c09
1 changed files with 3 additions and 2 deletions
|
@ -35,13 +35,13 @@
|
||||||
#ifndef W32MISC_H
|
#ifndef W32MISC_H
|
||||||
#define W32MISC_H
|
#define W32MISC_H
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#ifdef _MSC_VER
|
||||||
/* integral mismatch, due to misuse of sector short */
|
/* integral mismatch, due to misuse of sector short */
|
||||||
#pragma warning (disable : 4761 )
|
#pragma warning (disable : 4761 )
|
||||||
|
|
||||||
/* string.h */
|
/* string.h */
|
||||||
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
|
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
|
||||||
#endif /* !__GNUC__ */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
/* stdio.h */
|
/* stdio.h */
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
|
@ -56,5 +56,6 @@ typedef long ssize_t;
|
||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
|
|
||||||
/* time.h */
|
/* time.h */
|
||||||
|
#include <time.h>
|
||||||
extern char *strptime(const char *buf, const char *fmt, struct tm *tm);
|
extern char *strptime(const char *buf, const char *fmt, struct tm *tm);
|
||||||
#endif /* W32MISC_H */
|
#endif /* W32MISC_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue