stdinc.h: fix build with mingw #122

Merged
maxinbjohn merged 1 commits from master into master 2017-07-16 18:21:46 +00:00
1 changed files with 9 additions and 1 deletions

View File

@ -33,11 +33,19 @@
# include <malloc.h> # include <malloc.h>
# define PATH_DEV_NULL "nul" # define PATH_DEV_NULL "nul"
# ifndef ssize_t # ifndef ssize_t
# ifndef __MINGW32__
# include <BaseTsd.h> # include <BaseTsd.h>
# else
# include <basetsd.h>
# endif
# define ssize_t SSIZE_T # define ssize_t SSIZE_T
# endif # endif
# ifndef __MINGW32__
# include "win-dirent.h" # include "win-dirent.h"
# else # else
# include <dirent.h>
# endif
#else
# define PATH_DEV_NULL "/dev/null" # define PATH_DEV_NULL "/dev/null"
# include <dirent.h> # include <dirent.h>
# include <unistd.h> # include <unistd.h>