Compatibility with pre 7.3

parent 1084d85a
......@@ -44,6 +44,17 @@
#include "vcc_if.h"
#include "rvb.h"
// compat with pre 7.3 - XXX REMOVEME
#ifndef WS_TASK_ALLOC_OBJ
#define WS_TASK_ALLOC_OBJ(ctx, ptr, magic) do { \
ptr = WS_Alloc((ctx)->ws, sizeof *(ptr)); \
if ((ptr) == NULL) \
VRT_fail(ctx, "Out of workspace for " #magic); \
else \
INIT_OBJ(ptr, magic); \
} while(0)
#endif
#if !HAVE_PCRE2_SET_DEPTH_LIMIT
# define pcre2_set_depth_limit(r, d) pcre2_set_recursion_limit(r, d)
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment