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-09 06:02:28 -0500
commit5f4e95e7c16a63bbda4f3654126cc81806f779d8 (patch)
tree07ce0a0ee863ae003046746a40c18cee2394422f /include/compat/stdlib.h
parent9903a26661a8b7839bf711167da054a7273d9778 (diff)
downloadportable-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/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