Skip to content

Commit

Permalink
No non-const connect callback on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosv committed Mar 15, 2024
1 parent 7fc90c4 commit 2ebc16e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hircluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@
#define HIRCLUSTER_EVENT_READY 2
#define HIRCLUSTER_EVENT_FREE_CONTEXT 3

/* The non-const connect callback is missing in hiredis API prior v.1.1.0 */
#if !(HIREDIS_MAJOR >= 1 && HIREDIS_MINOR >= 1)
/* 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 needs to be updated. */
#if !(HIREDIS_MAJOR >= 1 && HIREDIS_MINOR >= 1) || _WIN32
#define HIRCLUSTER_NO_NONCONST_CONNECT_CB
#endif

Expand Down

0 comments on commit 2ebc16e

Please sign in to comment.