diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-11-07 21:31:42 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-11-07 21:31:42 +0300 |
commit | 4e4a1ce2bb9f6cd1d38fdc5f169d8956afab70c0 (patch) | |
tree | 2b6dac3fafbda2a1abc54eb9cea82e2fafc9a8a2 | |
parent | 24725d33d9074b880b7f993165dd408153004862 (diff) | |
download | libmicrohttpd-4e4a1ce2bb9f6cd1d38fdc5f169d8956afab70c0.tar.gz libmicrohttpd-4e4a1ce2bb9f6cd1d38fdc5f169d8956afab70c0.zip |
Fixed calloc() substitution.
-rw-r--r-- | src/microhttpd/Makefile.am | 6 | ||||
-rw-r--r-- | w32/common/MHD_config.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index cc48d11d..1ab04741 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -68,12 +68,8 @@ libmicrohttpd_la_SOURCES = \ | |||
68 | mhd_locks.h \ | 68 | mhd_locks.h \ |
69 | mhd_sockets.c mhd_sockets.h \ | 69 | mhd_sockets.c mhd_sockets.h \ |
70 | mhd_itc.c mhd_itc.h mhd_itc_types.h \ | 70 | mhd_itc.c mhd_itc.h mhd_itc_types.h \ |
71 | mhd_compat.h \ | 71 | mhd_compat.c mhd_compat.h \ |
72 | response.c response.h | 72 | response.c response.h |
73 | if HAVE_W32 | ||
74 | libmicrohttpd_la_SOURCES += \ | ||
75 | mhd_compat.c | ||
76 | endif | ||
77 | 73 | ||
78 | libmicrohttpd_la_CPPFLAGS = \ | 74 | libmicrohttpd_la_CPPFLAGS = \ |
79 | $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) \ | 75 | $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) \ |
diff --git a/w32/common/MHD_config.h b/w32/common/MHD_config.h index bfa7ce8d..0101756a 100644 --- a/w32/common/MHD_config.h +++ b/w32/common/MHD_config.h | |||
@@ -74,6 +74,9 @@ | |||
74 | /* Define to 1 if you have the `gmtime_s' function in W32 form. */ | 74 | /* Define to 1 if you have the `gmtime_s' function in W32 form. */ |
75 | #define HAVE_W32_GMTIME_S 1 | 75 | #define HAVE_W32_GMTIME_S 1 |
76 | 76 | ||
77 | /* Define to 1 if you have the usable `calloc' function. */ | ||
78 | #define HAVE_CALLOC 1 | ||
79 | |||
77 | #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */ | 80 | #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */ |
78 | /* Define to 1 if you have the `snprintf' function. */ | 81 | /* Define to 1 if you have the `snprintf' function. */ |
79 | #define HAVE_SNPRINTF 1 | 82 | #define HAVE_SNPRINTF 1 |