aboutsummaryrefslogtreecommitdiff
path: root/system/include/jansson_config.h
diff options
context:
space:
mode:
authorLars Schneider <lars.schneider@autodesk.com>2012-10-13 23:09:30 +0200
committerAlon Zakai <alonzakai@gmail.com>2012-10-17 12:43:59 -0700
commit31bba7e9b919d91fb7c8f6b9b724258a15aa4509 (patch)
treec8864c05ecbf7ee4e6986da7d573c881ace27b4b /system/include/jansson_config.h
parent860cf619431ace201478625c1af8d411824caa6b (diff)
Add `library_jansson` for JSON parsing.
Jansson is a C library for encoding, decoding and manipulating JSON data [1]. `library_jansson` mimics this interface (currently only for decoding) to perform JSON parsing in Javascript. [1] https://github.com/akheron/jansson
Diffstat (limited to 'system/include/jansson_config.h')
-rw-r--r--system/include/jansson_config.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/system/include/jansson_config.h b/system/include/jansson_config.h
new file mode 100644
index 00000000..ede5c1bd
--- /dev/null
+++ b/system/include/jansson_config.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2009-2012 Petri Lehtinen <petri@digip.org>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ *
+ * This file specifies a part of the site-specific configuration for
+ * Jansson, namely those things that affect the public API in
+ * jansson.h.
+ *
+ * The configure script copies this file to jansson_config.h and
+ * replaces @var@ substitutions by values that fit your system. If you
+ * cannot run the configure script, you can do the value substitution
+ * by hand.
+ */
+
+#ifndef JANSSON_CONFIG_H
+#define JANSSON_CONFIG_H
+
+/* If your compiler supports the inline keyword in C, JSON_INLINE is
+ defined to `inline', otherwise empty. In C++, the inline is always
+ supported. */
+#ifdef __cplusplus
+#define JSON_INLINE inline
+#else
+#define JSON_INLINE inline
+#endif
+
+/* If your compiler supports the `long long` type and the strtoll()
+ library function, JSON_INTEGER_IS_LONG_LONG is defined to 1,
+ otherwise to 0. */
+#define JSON_INTEGER_IS_LONG_LONG 0
+
+/* If locale.h and localeconv() are available, define to 1,
+ otherwise to 0. */
+#define JSON_HAVE_LOCALECONV 0
+
+
+#endif