From e7533aa6f06bcd2e5a1b0f251b6f0f736109db2c Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Thu, 12 Jan 2017 20:35:13 +0100 Subject: [PATCH] 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. --- cJSON.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cJSON.h b/cJSON.h index 63b50f7..6537062 100644 --- 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 /* cJSON Types: */