diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2021-02-13 13:04:04 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2021-02-13 13:04:04 +0000 |
commit | 8f67d37de16f4d4a3c64b754a079789ce8ad1b25 (patch) | |
tree | f70a7f1a49f2036e84a115da7b6b718d2c702e41 /subversion/libsvn_subr/iter.c | |
parent | bbee6e0814d5875b85b81f26fd4ca7a28b6f9570 (diff) |
Diffstat (limited to 'subversion/libsvn_subr/iter.c')
-rw-r--r-- | subversion/libsvn_subr/iter.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/subversion/libsvn_subr/iter.c b/subversion/libsvn_subr/iter.c index 6d04846e8378..1a303b511945 100644 --- a/subversion/libsvn_subr/iter.c +++ b/subversion/libsvn_subr/iter.c @@ -143,3 +143,29 @@ svn_iter__break(void) { return &internal_break_error; } + +#if !APR_VERSION_AT_LEAST(1, 5, 0) +const void *apr_hash_this_key(apr_hash_index_t *hi) +{ + const void *key; + + apr_hash_this((apr_hash_index_t *)hi, &key, NULL, NULL); + return key; +} + +apr_ssize_t apr_hash_this_key_len(apr_hash_index_t *hi) +{ + apr_ssize_t klen; + + apr_hash_this((apr_hash_index_t *)hi, NULL, &klen, NULL); + return klen; +} + +void *apr_hash_this_val(apr_hash_index_t *hi) +{ + void *val; + + apr_hash_this((apr_hash_index_t *)hi, NULL, NULL, &val); + return val; +} +#endif |