From 25daae30fdd6c39b94468f67ece9af9403bcd892 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 7 Apr 2016 15:08:50 +0200 Subject: [PATCH] build: stop installing private headers Those are no longer public ABI, so they shouldn't be public API either. Fix json.h to no longer reference those files. --- Makefile.am | 12 ++++++------ json.h | 3 --- json_object_iterator.c | 3 +++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index b1cbed6..3d883cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,18 +12,13 @@ pkgconfig_DATA = libfastjson.pc libfastjsonincludedir = $(includedir)/libfastjson libfastjsoninclude_HEADERS = \ atomic.h \ - arraylist.h \ - debug.h \ json.h \ json_inttypes.h \ json_object.h \ json_object_iterator.h \ json_object_private.h \ json_tokener.h \ - json_util.h \ - linkhash.h \ - printbuf.h \ - random_seed.h + json_util.h libfastjson_la_LDFLAGS = \ -version-info 3:0:0 \ @@ -40,10 +35,15 @@ libfastjson_la_SOURCES = \ json_util.c libfastjson_internal_la_SOURCES = \ + arraylist.h \ arraylist.c \ + debug.h \ debug.c \ + linkhash.h \ linkhash.c \ + printbuf.h \ printbuf.c \ + random_seed.h \ random_seed.c uninstall-local: diff --git a/json.h b/json.h index 5d4538f..81e9e07 100644 --- a/json.h +++ b/json.h @@ -17,9 +17,6 @@ extern "C" { #endif -#include "debug.h" -#include "linkhash.h" -#include "arraylist.h" #include "json_util.h" #include "json_object.h" #include "json_tokener.h" diff --git a/json_object_iterator.c b/json_object_iterator.c index 5e51f98..3a6f4e6 100644 --- a/json_object_iterator.c +++ b/json_object_iterator.c @@ -24,6 +24,9 @@ #include "json_object_iterator.h" +#include "debug.h" +#include "linkhash.h" + /** * How It Works *