diff options
author | Brent Cook <bcook@openbsd.org> | 2015-09-08 15:00:09 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-09-09 06:02:28 -0500 |
commit | 5f4e95e7c16a63bbda4f3654126cc81806f779d8 (patch) | |
tree | 07ce0a0ee863ae003046746a40c18cee2394422f /include/compat/stdio.h | |
parent | 9903a26661a8b7839bf711167da054a7273d9778 (diff) | |
download | portable-5f4e95e7c16a63bbda4f3654126cc81806f779d8.tar.gz portable-5f4e95e7c16a63bbda4f3654126cc81806f779d8.tar.bz2 portable-5f4e95e7c16a63bbda4f3654126cc81806f779d8.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/stdio.h')
-rw-r--r-- | include/compat/stdio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/compat/stdio.h b/include/compat/stdio.h index 973faa4..4b96b8b 100644 --- a/include/compat/stdio.h +++ b/include/compat/stdio.h | |||
@@ -7,7 +7,13 @@ | |||
7 | #define LIBCRYPTOCOMPAT_STDIO_H | 7 | #define LIBCRYPTOCOMPAT_STDIO_H |
8 | 8 | ||
9 | #ifdef _MSC_VER | 9 | #ifdef _MSC_VER |
10 | #if _MSC_VER >= 1900 | ||
11 | #include <../ucrt/stdlib.h> | ||
12 | #include <../ucrt/corecrt_io.h> | ||
13 | #include <../ucrt/stdio.h> | ||
14 | #else | ||
10 | #include <../include/stdio.h> | 15 | #include <../include/stdio.h> |
16 | #endif | ||
11 | #else | 17 | #else |
12 | #include_next <stdio.h> | 18 | #include_next <stdio.h> |
13 | #endif | 19 | #endif |