(ssize_t, pid_t) [_WIN32]: Move from misc.h to POSIX's location
in unistd.h.
This commit is contained in:
parent
9e1e242b4e
commit
287aa9d162
2 changed files with 3 additions and 3 deletions
|
@ -41,14 +41,11 @@
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
|
|
||||||
typedef long ssize_t;
|
|
||||||
|
|
||||||
/* integral mismatch, due to misuse of sector short */
|
/* integral mismatch, due to misuse of sector short */
|
||||||
#pragma warning (disable : 4761 )
|
#pragma warning (disable : 4761 )
|
||||||
|
|
||||||
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
|
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
|
||||||
|
|
||||||
typedef int pid_t;
|
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
typedef long ssize_t;
|
||||||
|
typedef int pid_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* posixfile.c
|
* posixfile.c
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue