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,10 +33,18 @@
# 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
# include "win-dirent.h" # ifndef __MINGW32__
# include "win-dirent.h"
# else
# include <dirent.h>
# endif
#else #else
# define PATH_DEV_NULL "/dev/null" # define PATH_DEV_NULL "/dev/null"
# include <dirent.h> # include <dirent.h>