From 5f4e95e7c16a63bbda4f3654126cc81806f779d8 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Tue, 8 Sep 2015 15:00:09 -0500 Subject: updates for MSVC 2015's degenerate headers Note that 'perror' moves from stdio.h to stdlib.h, and 'rename' moves from stdio.h to io.h. Also, standard C includes move from the compiler to the Windows SDK, which changes the base path for the include files. --- include/compat/dirent_msvc.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'include/compat/dirent_msvc.h') diff --git a/include/compat/dirent_msvc.h b/include/compat/dirent_msvc.h index bf9cf1a..e5c5c41 100644 --- a/include/compat/dirent_msvc.h +++ b/include/compat/dirent_msvc.h @@ -29,15 +29,24 @@ #include +#if _MSC_VER >= 1900 +#include <../ucrt/stdio.h> +#include <../ucrt/wchar.h> +#include <../ucrt/string.h> +#include <../ucrt/stdlib.h> +#include <../ucrt/sys/types.h> +#include <../ucrt/errno.h> +#else #include <../include/stdio.h> -#include <../include/stdarg.h> #include <../include/wchar.h> #include <../include/string.h> #include <../include/stdlib.h> -#include <../include/malloc.h> #include <../include/sys/types.h> -#include #include <../include/errno.h> +#endif + +#include +#include /* Indicates that d_type field is available in dirent structure */ #define _DIRENT_HAVE_D_TYPE -- cgit v1.2.3-55-g6feb