From 8cb26daea6f14cf93a8cdf715b8ed823cf298f64 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sun, 25 Oct 2020 22:52:53 +0300 Subject: Fixed conflict with system CPU_COUNT macro --- src/testcurl/test_get_response_cleanup.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/testcurl/test_get_response_cleanup.c') diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c index 026fd254..db6ba54f 100644 --- a/src/testcurl/test_get_response_cleanup.c +++ b/src/testcurl/test_get_response_cleanup.c @@ -53,11 +53,11 @@ #include "mhd_has_in_name.h" -#if defined(CPU_COUNT) && (CPU_COUNT + 0) < 2 -#undef CPU_COUNT +#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 2 +#undef MHD_CPU_COUNT #endif -#if ! defined(CPU_COUNT) -#define CPU_COUNT 2 +#if ! defined(MHD_CPU_COUNT) +#define MHD_CPU_COUNT 2 #endif #define TESTSTR "/* DO NOT CHANGE THIS LINE */" @@ -285,7 +285,8 @@ testMultithreadedPoolGet () ok = 1; d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, port, NULL, NULL, &ahc_echo, "GET", - MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT, MHD_OPTION_END); + MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT, + MHD_OPTION_END); if (d == NULL) return 64; if (0 == port) -- cgit v1.2.3