diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-14 11:25:29 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-14 11:25:29 +0300 |
commit | 30beb61e117fdfe1f7b1bca602c5c4b1cce33fc5 (patch) | |
tree | 80a5b249d2a6c3d335046d52f66b27dcd4036cbb /src/microhttpd | |
parent | 5e0c22236781a8dfb8cee15264c6b02d3b10725b (diff) | |
download | libmicrohttpd-30beb61e117fdfe1f7b1bca602c5c4b1cce33fc5.tar.gz libmicrohttpd-30beb61e117fdfe1f7b1bca602c5c4b1cce33fc5.zip |
Added ability to check for MHD debug builds at run-time
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/daemon.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 90a49e91..c5aa3d9d 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -8747,6 +8747,12 @@ MHD_is_feature_supported (enum MHD_FEATURE feature) | |||
8747 | #else | 8747 | #else |
8748 | return MHD_NO; | 8748 | return MHD_NO; |
8749 | #endif | 8749 | #endif |
8750 | case MHD_FEATURE_DEBUG_BUILD: | ||
8751 | #ifdef _DEBUG | ||
8752 | return MHD_YES; | ||
8753 | #else | ||
8754 | return MHD_NO; | ||
8755 | #endif | ||
8750 | 8756 | ||
8751 | default: | 8757 | default: |
8752 | break; | 8758 | break; |