aboutsummaryrefslogtreecommitdiff
path: root/include/compat/stdio.h
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-09-08 15:00:09 -0500
committerBrent Cook <bcook@openbsd.org>2015-09-11 16:36:18 -0500
commit9c2f0ef51ce8d0f9210497f3b81b01c073cac3ae (patch)
treecd0fef0d27cfac39ca710ed9a288f6f9603656be /include/compat/stdio.h
parente13a39a5a7139430d31fe1103a4bf121f65b3169 (diff)
downloadportable-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/stdio.h')
-rw-r--r--include/compat/stdio.h6
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