Fixed conflict with system CPU_COUNT macro

This commit is contained in:
Evgeny Grin (Karlson2k)
2020-10-25 22:52:53 +03:00
parent 01fec59041
commit 8cb26daea6
30 changed files with 169 additions and 157 deletions
+5 -5
View File
@@ -36,11 +36,11 @@
#endif /* MHD_HTTPS_REQUIRE_GRYPT */
#include "tls_test_common.h"
#if defined(CPU_COUNT) && (CPU_COUNT + 0) < 4
#undef CPU_COUNT
#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 4
#undef MHD_CPU_COUNT
#endif
#if ! defined(CPU_COUNT)
#define CPU_COUNT 4
#if ! defined(MHD_CPU_COUNT)
#define MHD_CPU_COUNT 4
#endif
extern const char srv_key_pem[];
@@ -105,7 +105,7 @@ test_parallel_clients (void *cls, int port, const char *cipher_suite,
int curl_proto_version)
{
int i;
int client_count = (CPU_COUNT - 1);
int client_count = (MHD_CPU_COUNT - 1);
void *client_thread_ret;
pthread_t client_arr[client_count];
struct https_test_data client_args =