mirror of
https://github.com/apache/httpd.git
synced 2025-07-29 12:25:29 +00:00
Follow up to r1897240: APR_HAS_THREAD_LOCAL wants #ifdef instead of #if.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -282,7 +282,7 @@ typedef int* match_data_pt;
|
||||
typedef int* match_vector_pt;
|
||||
#endif
|
||||
|
||||
#if APR_HAS_THREAD_LOCAL
|
||||
#ifdef APR_HAS_THREAD_LOCAL
|
||||
|
||||
static match_data_pt get_match_data(apr_size_t size,
|
||||
match_vector_pt *ovector,
|
||||
@ -398,7 +398,7 @@ AP_DECLARE(int) ap_regexec_len(const ap_regex_t *preg, const char *buff,
|
||||
match_vector_pt ovector = NULL;
|
||||
apr_size_t nlim = ((apr_size_t)preg->re_nsub + 1) > nmatch
|
||||
? ((apr_size_t)preg->re_nsub + 1) : nmatch;
|
||||
#if defined(HAVE_PCRE2) || APR_HAS_THREAD_LOCAL
|
||||
#if defined(HAVE_PCRE2) || defined(APR_HAS_THREAD_LOCAL)
|
||||
match_data_pt data = get_match_data(nlim, &ovector, NULL);
|
||||
#else
|
||||
int small_vector[POSIX_MALLOC_THRESHOLD * 3];
|
||||
|
Reference in New Issue
Block a user