For w32misc.h add the POSIX equivalent include file for each

declaration.
This commit is contained in:
Ron Koenderink 2007-08-16 03:15:33 +00:00
parent 222894093d
commit 3bdad8ce26

View file

@ -39,19 +39,22 @@
/* 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 */
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3)) #define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
#endif /* !__GNUC__ */ #endif /* !__GNUC__ */
/* stdio.h */
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#define snprintf _snprintf #define snprintf _snprintf
/* stdlib.h */
#define random rand #define random rand
#define srandom srand #define srandom srand
/* sys/types.h */
typedef long ssize_t; typedef long ssize_t;
typedef int pid_t; typedef int pid_t;
/* /* time.h */
* strptime.c
*/
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 */