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/sys/stat.h | 4 ++++ include/compat/sys/types.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'include/compat/sys') diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index 9d48251..0e04553 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h @@ -11,7 +11,11 @@ #else #include +#if _MSC_VER >= 1900 +#include <../ucrt/sys/stat.h> +#else #include <../include/sys/stat.h> +#endif /* File type and permission flags for stat() */ #if !defined(S_IFMT) diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 38dc582..1e9979f 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h @@ -4,7 +4,11 @@ */ #ifdef _MSC_VER +#if _MSC_VER >= 1900 +#include <../ucrt/sys/types.h> +#else #include <../include/sys/types.h> +#endif #else #include_next #endif -- cgit v1.2.3-55-g6feb