aboutsummaryrefslogtreecommitdiff
path: root/include/compat/stdlib.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/stdlib.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/stdlib.h')
-rw-r--r--include/compat/stdlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h
index e31f075..506d463 100644
--- a/include/compat/stdlib.h
+++ b/include/compat/stdlib.h
@@ -4,7 +4,11 @@
4 */ 4 */
5 5
6#ifdef _MSC_VER 6#ifdef _MSC_VER
7#if _MSC_VER >= 1900
8#include <../ucrt/stdlib.h>
9#else
7#include <../include/stdlib.h> 10#include <../include/stdlib.h>
11#endif
8#else 12#else
9#include_next <stdlib.h> 13#include_next <stdlib.h>
10#endif 14#endif