/*
- * Copyright (C) 2010-2011 jeanfi@gmail.com
+ * Copyright (C) 2010-2014 jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
#ifndef _PSENSOR_PSENSOR_JSON_H_
#define _PSENSOR_PSENSOR_JSON_H_
+#include "config.h"
+
+#ifdef HAVE_JSON_0
#include <json/json.h>
+#else
+#include <json-c/json.h>
+#endif
#include "psensor.h"