cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit e7533aa6f06bcd2e5a1b0f251b6f0f736109db2c
parent de8eaaba894ddec63fb423d11fecb236c3e9fc7e
Author: Max Bruckner <max@maxbruckner.de>
Date:   Thu, 12 Jan 2017 20:35:13 +0100

Put version information in the header

This is important so that it is always known which version of the
library is used, especially if the C and Header files have just been
copy pasted to another code base.

Diffstat:
McJSON.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/cJSON.h b/cJSON.h @@ -28,6 +28,10 @@ extern "C" { #endif +/* project version */ +#define CJSON_VERSION_MAJOR 1 +#define CJSON_VERSION_MINOR 2 +#define CJSON_VERSION_PATCH 0 #include <stddef.h> /* cJSON Types: */