From ea1244a990f3ac99f1f1eaf9229c3dd27887aa6c Mon Sep 17 00:00:00 2001 From: Florin Ovidiu FRATILA Date: Wed, 15 Jan 2025 12:21:46 +0200 Subject: [PATCH] Enable non-const connect callback API on Windows This can be done since hiredis_cluster.def is no longer a limitation --- hircluster.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hircluster.h b/hircluster.h index 88ea42e..5b2480b 100644 --- a/hircluster.h +++ b/hircluster.h @@ -71,9 +71,9 @@ #define HIRCLUSTER_EVENT_FREE_CONTEXT 3 /* The non-const connect callback API is not available when: - * - using hiredis prior v.1.1.0; or - * - built on Windows since hiredis_cluster.def can't have conditional definitions. */ -#if !(HIREDIS_MAJOR >= 1 && HIREDIS_MINOR >= 1) || _WIN32 + * - using hiredis prior v.1.1.0; + */ +#if !(HIREDIS_MAJOR >= 1 && HIREDIS_MINOR >= 1) #define HIRCLUSTER_NO_NONCONST_CONNECT_CB #endif