Renamed config.h -> jansson_private_config.h

This is because it's really easy to get a name collission if compiling
Jansson as a subproject in a larger CMake project. If one project includes
several subprojects each having their own config.h, this will cause the
wrong file to be loaded.
This commit is contained in:
Joakim Soderberg
2014-01-13 17:13:44 +01:00
parent 913937c98d
commit 3fe8f74e7f
10 changed files with 22 additions and 18 deletions

View File

@@ -5,9 +5,9 @@
#include "jansson_private.h"
#include "strbuffer.h"
/* need config.h to get the correct snprintf */
/* need jansson_private_config.h to get the correct snprintf */
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <jansson_private_config.h>
#endif
#if JSON_HAVE_LOCALECONV

View File

@@ -9,7 +9,8 @@
#define UTF_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <jansson_private_config.h>
#ifdef HAVE_INTTYPES_H
/* inttypes.h includes stdint.h in a standard environment, so there's