Also create feature-macro
rewind(f);
if (!(j = json_loadf(f, 0, &jerr)))
{
- enum json_error_code je = json_error_code(&jerr);
- *errmsg = string_sprintf("json err %d on open", je);
+ *errmsg = string_sprintf("json error on open: %.*s\n",
+ JSON_ERROR_TEXT_LENGTH, jerr.text);
return FAIL;
}
j0 = j;
#ifdef LOOKUP_IBASE
builtin_macro_create(US"_HAVE_LOOKUP_IBASE");
#endif
+#ifdef LOOKUP_LDAP
+ builtin_macro_create(US"_HAVE_LOOKUP_JSON");
+#endif
#ifdef LOOKUP_LDAP
builtin_macro_create(US"_HAVE_LOOKUP_LDAP");
#endif