This way, more site configuration can be more easily added later.
stamp-h1
*.pyc
*.pc
-/src/jansson.h
+/src/jansson_config.h
Makefile
doc/Makefile
src/Makefile
- src/jansson.h
+ src/jansson_config.h
test/Makefile
test/bin/Makefile
test/suites/Makefile
-include_HEADERS = jansson.h
+include_HEADERS = jansson.h jansson_config.h
lib_LTLIBRARIES = libjansson.la
libjansson_la_SOURCES = \
#include <stdio.h>
#include <stdlib.h> /* for size_t */
+#include <jansson_config.h>
-#ifndef __cplusplus
-#define JSON_INLINE @json_inline@
-#else
-#define JSON_INLINE inline
+#ifdef __cplusplus
extern "C" {
#endif
--- /dev/null
+/*
+ * Copyright (c) 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#ifndef JANSSON_CONFIG_H
+#define JANSSON_CONFIG_H
+
+#ifdef __cplusplus
+#define JSON_INLINE inline
+#else
+#define JSON_INLINE @json_inline@
+#endif
+
+#endif