aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_json.c
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2012-01-13 16:54:19 +0000
committerIan Jackson <ian.jackson@eu.citrix.com>2012-01-13 16:54:19 +0000
commit8fc051a10f0df8e0030b2d6cbddb720f4322c7d3 (patch)
treeb084dd44fc9703591febed56091b8c6429520298 /tools/libxl/libxl_json.c
parent3607a75236b37abe350bf52f4700355be963a60d (diff)
downloadxen-8fc051a10f0df8e0030b2d6cbddb720f4322c7d3.tar.gz
xen-8fc051a10f0df8e0030b2d6cbddb720f4322c7d3.tar.bz2
xen-8fc051a10f0df8e0030b2d6cbddb720f4322c7d3.zip
libxl: move a lot more includes into libxl_internal.h
Move a lot of #include <stdfoo.h> from individual files into libxl_internal.h. This helps avoid portability mistakes where necessary system headers are omitted from individual files, and is also of course a convenience when developing. Also add #include "libxl_osdeps.h" /* must come before any other headers */ to the top of most libxl*.c files, so that anyone who adds any headers before libxl_internal.h will put the in the right place. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_json.c')
-rw-r--r--tools/libxl/libxl_json.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c
index c0f869e1eb..6ff2910806 100644
--- a/tools/libxl/libxl_json.c
+++ b/tools/libxl/libxl_json.c
@@ -12,10 +12,8 @@
* GNU Lesser General Public License for more details.
*/
-#include "libxl_osdeps.h"
+#include "libxl_osdeps.h" /* must come before any other headers */
-#include <assert.h>
-#include <string.h>
#include <math.h>
#include <yajl/yajl_parse.h>