diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-01 10:19:16 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-01 10:19:16 +0300 |
commit | a64a0ac77ee5dcfa40c727c53f86fe9c62ff12be (patch) | |
tree | 5760cda170358c1092dc54fc6f1789344c502dc9 /src/microhttpd/mhd_locks.h | |
parent | ec09d0a88b84508b103aa8d8c826695429d3565d (diff) | |
download | libmicrohttpd-a64a0ac77ee5dcfa40c727c53f86fe9c62ff12be.tar.gz libmicrohttpd-a64a0ac77ee5dcfa40c727c53f86fe9c62ff12be.zip |
Test for stdlib.h presence
Diffstat (limited to 'src/microhttpd/mhd_locks.h')
-rw-r--r-- | src/microhttpd/mhd_locks.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/microhttpd/mhd_locks.h b/src/microhttpd/mhd_locks.h index 2ef7747e..654ecb6c 100644 --- a/src/microhttpd/mhd_locks.h +++ b/src/microhttpd/mhd_locks.h | |||
@@ -58,7 +58,9 @@ | |||
58 | 58 | ||
59 | #ifndef MHD_PANIC | 59 | #ifndef MHD_PANIC |
60 | # include <stdio.h> | 60 | # include <stdio.h> |
61 | # include <stdlib.h> | 61 | # ifdef HAVE_STDLIB_H |
62 | # include <stdlib.h> | ||
63 | # endif /* HAVE_STDLIB_H */ | ||
62 | /* Simple implementation of MHD_PANIC, to be used outside lib */ | 64 | /* Simple implementation of MHD_PANIC, to be used outside lib */ |
63 | # define MHD_PANIC(msg) do { fprintf (stderr, \ | 65 | # define MHD_PANIC(msg) do { fprintf (stderr, \ |
64 | "Abnormal termination at %d line in file %s: %s\n", \ | 66 | "Abnormal termination at %d line in file %s: %s\n", \ |