jansson_config.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2010-2016 Petri Lehtinen <petri@digip.org>
  3. *
  4. * Jansson is free software; you can redistribute it and/or modify
  5. * it under the terms of the MIT license. See LICENSE for details.
  6. *
  7. *
  8. * This file specifies a part of the site-specific configuration for
  9. * Jansson, namely those things that affect the public API in
  10. * jansson.h.
  11. *
  12. * The configure script copies this file to jansson_config.h and
  13. * replaces @var@ substitutions by values that fit your system. If you
  14. * cannot run the configure script, you can do the value substitution
  15. * by hand.
  16. */
  17. #ifndef JANSSON_CONFIG_H
  18. #define JANSSON_CONFIG_H
  19. /* If your compiler supports the inline keyword in C, JSON_INLINE is
  20. defined to `inline', otherwise empty. In C++, the inline is always
  21. supported. */
  22. #ifdef __cplusplus
  23. #define JSON_INLINE inline
  24. #else
  25. #define JSON_INLINE inline
  26. #endif
  27. /* If your compiler supports the `long long` type and the strtoll()
  28. library function, JSON_INTEGER_IS_LONG_LONG is defined to 1,
  29. otherwise to 0. */
  30. #define JSON_INTEGER_IS_LONG_LONG 1
  31. /* If locale.h and localeconv() are available, define to 1,
  32. otherwise to 0. */
  33. #define JSON_HAVE_LOCALECONV 0
  34. /* Maximum recursion depth for parsing JSON input.
  35. This limits the depth of e.g. array-within-array constructions. */
  36. #define JSON_PARSER_MAX_DEPTH 2048
  37. #endif