]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Define HAVE_JSON when generating docs
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 11 Jan 2013 20:16:16 +0000 (20:16 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 11 Jan 2013 20:16:16 +0000 (20:16 +0000)
doc/source/Doxyfile
src/modules/rlm_rest/rest.c

index eb1b3e682c21fbbdb937b68df5ac78cd715830bc..a6d20073c08463c67de583cc0b6d12d72b80d920 100644 (file)
@@ -1486,6 +1486,7 @@ PREDEFINED            += WITH_TCP
 PREDEFINED            += WITH_DHCP
 PREDEFINED            += WITH_VMPS
 PREDEFINED            += WITH_THREADS
+PREDEFINED            += HAVE_JSON
 
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 
index 83f2165249c1047bd86b30973ae342ec9dcb4fd3..0c63fa8141fba8adc1acc1d09204e7f52252039a 100644 (file)
@@ -1151,6 +1151,7 @@ static int rest_decode_post(rlm_rest_t *instance,
 
 }
 
+#ifdef HAVE_JSON
 /** Converts JSON "value" key into VALUE_PAIR.
  *
  * If leaf is not in fact a leaf node, but contains JSON data, the data will
@@ -1165,7 +1166,6 @@ static int rest_decode_post(rlm_rest_t *instance,
  * @param[in] leaf object containing the VALUE_PAIR value.
  * @return The VALUE_PAIR just created, or NULL on error.
  */
-#ifdef HAVE_JSON
 static VALUE_PAIR *json_pairmake_leaf(rlm_rest_t *instance,
                                      UNUSED rlm_rest_section_t *section,
                                      REQUEST *request, const DICT_ATTR *da,