You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json_c_version.h 1.4 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (c) 2012,2017 Eric Haszlakiewicz
  3. *
  4. * This library is free software; you can redistribute it and/or modify
  5. * it under the terms of the MIT license. See COPYING for details.
  6. */
  7. /**
  8. * @file
  9. * @brief Methods for retrieving the json-c version.
  10. */
  11. #ifndef _json_c_version_h_
  12. #define _json_c_version_h_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define JSON_C_MAJOR_VERSION 0
  17. #define JSON_C_MINOR_VERSION 16
  18. #define JSON_C_MICRO_VERSION 99
  19. #define JSON_C_VERSION_NUM \
  20. ((JSON_C_MAJOR_VERSION << 16) | (JSON_C_MINOR_VERSION << 8) | JSON_C_MICRO_VERSION)
  21. #define JSON_C_VERSION "0.16.99"
  22. #ifndef JSON_EXPORT
  23. #if defined(_MSC_VER) && defined(JSON_C_DLL)
  24. #define JSON_EXPORT __declspec(dllexport)
  25. #else
  26. #define JSON_EXPORT extern
  27. #endif
  28. #endif
  29. /**
  30. * @see JSON_C_VERSION
  31. * @return the version of the json-c library as a string
  32. */
  33. JSON_EXPORT const char *json_c_version(void); /* Returns JSON_C_VERSION */
  34. /**
  35. * The json-c version encoded into an int, with the low order 8 bits
  36. * being the micro version, the next higher 8 bits being the minor version
  37. * and the next higher 8 bits being the major version.
  38. * For example, 7.12.99 would be 0x00070B63.
  39. *
  40. * @see JSON_C_VERSION_NUM
  41. * @return the version of the json-c library as an int
  42. */
  43. JSON_EXPORT int json_c_version_num(void); /* Returns JSON_C_VERSION_NUM */
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif