#include <string.h>
#include <time.h>
-#include <config.h>
#include "lp_json.h"
#include "lp_ws.h"
-/* Declares json_bool to have consistent code even with
- old json lib releases using boolean instead of json_bool.*/
-#ifndef HAVE_JSON_BOOL
-typedef boolean json_bool;
-#endif
-
static time_t json_to_time(json_object *json)
{
const char *str;
#include <json/json.h>
+#include <config.h>
+
+/* Declares json_bool to have consistent code even with
+ old json lib releases using boolean instead of json_bool.*/
+#ifndef HAVE_JSON_BOOL
+typedef boolean json_bool;
+#endif
+
#include "lp.h"
struct bpph **json_object_to_bpph_list(json_object *o);
check-local: checkpatch.pl
find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --show-types -q --no-tree -emacs -f {} \;
- find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --show-types -q --no-tree -emacs -f {} \;
+ find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore NEW_TYPEDEFS --show-types -q --no-tree -emacs -f {} \;
EXTRA_DIST = \
checkpatch.pl \
check-local: checkpatch.pl
find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --show-types -q --no-tree -emacs -f {} \;
- find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --show-types -q --no-tree -emacs -f {} \;
+ find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore NEW_TYPEDEFS --show-types -q --no-tree -emacs -f {} \;
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.