Skip to content

Commit

Permalink
Enable non-const connect callback API on Windows
Browse files Browse the repository at this point in the history
This can be done since hiredis_cluster.def is no longer a limitation
  • Loading branch information
ffratila committed Jan 15, 2025
1 parent 956caaa commit ea1244a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hircluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea1244a

Please sign in to comment.