diff options
| author | Brent Cook <bcook@openbsd.org> | 2015-09-08 15:00:09 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2015-09-11 16:36:18 -0500 |
| commit | 9c2f0ef51ce8d0f9210497f3b81b01c073cac3ae (patch) | |
| tree | cd0fef0d27cfac39ca710ed9a288f6f9603656be /include/compat/sys/stat.h | |
| parent | e13a39a5a7139430d31fe1103a4bf121f65b3169 (diff) | |
| download | portable-9c2f0ef51ce8d0f9210497f3b81b01c073cac3ae.tar.gz portable-9c2f0ef51ce8d0f9210497f3b81b01c073cac3ae.tar.bz2 portable-9c2f0ef51ce8d0f9210497f3b81b01c073cac3ae.zip | |
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.
Diffstat (limited to 'include/compat/sys/stat.h')
| -rw-r--r-- | include/compat/sys/stat.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
| 11 | #else | 11 | #else |
| 12 | 12 | ||
| 13 | #include <windows.h> | 13 | #include <windows.h> |
| 14 | #if _MSC_VER >= 1900 | ||
| 15 | #include <../ucrt/sys/stat.h> | ||
| 16 | #else | ||
| 14 | #include <../include/sys/stat.h> | 17 | #include <../include/sys/stat.h> |
| 18 | #endif | ||
| 15 | 19 | ||
| 16 | /* File type and permission flags for stat() */ | 20 | /* File type and permission flags for stat() */ |
| 17 | #if !defined(S_IFMT) | 21 | #if !defined(S_IFMT) |
