comparison dw.hpp @ 2973:ac880987a2c4

Mac: Fix compiling with Xcode 8.2.1, needed #include <stdlib.h> and <errno.h> for missing alloca(), calloc() and errno.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 21 Mar 2023 00:41:25 +0000
parents 5727036821bd
children fffb4904c90b
comparison
equal deleted inserted replaced
2972:5727036821bd 2973:ac880987a2c4
6 #define _HPP_DW 6 #define _HPP_DW
7 #include <dw.h> 7 #include <dw.h>
8 #include <cstring> 8 #include <cstring>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 // For alloca() and calloc()
12 #include <stdlib.h>
11 13
12 // Attempt to support compilers without nullptr type literal 14 // Attempt to support compilers without nullptr type literal
13 #if __cplusplus >= 201103L 15 #if __cplusplus >= 201103L
14 #define DW_CPP11 16 #define DW_CPP11
15 #define DW_NULL nullptr 17 #define DW_NULL nullptr