commit 8c8f7c961498aba8e891b445809a6f764c3e8046 parent 59b4a6a00a00fcd7b985a20e0c8b303b3bf440e4 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Sat, 25 Nov 2017 19:03:24 +0300 Fixed builds with size optimisation. Diffstat:
| M | ChangeLog | | | 3 | +++ |
| M | src/microhttpd/mhd_str.c | | | 4 | +++- |
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,6 @@ +Sat Nov 26 18:37:00 MSK 2017 + Fixed build with optimisation for size. -EG + Fri Nov 24 20:14:02 CET 2017 Releasing GNU libmicrohttpd 0.9.56. -CG diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c @@ -162,8 +162,10 @@ toasciiupper (char c) { return isasciilower (c) ? (c - 'a' + 'A') : c; } +#endif /* Disable unused functions. */ +#if defined(MHD_FAVOR_SMALL_CODE) /* Used only in MHD_str_to_uvalue_n_() */ /** * Convert US-ASCII decimal digit to its value. * @@ -178,7 +180,7 @@ todigitvalue (char c) return -1; } -#endif /* Disable unused functions. */ +#endif /* MHD_FAVOR_SMALL_CODE */ /**