From: Rikard Falkeborn Date: Wed, 13 Dec 2017 21:24:50 +0000 (+0100) Subject: Fix non-GNUC define for JSON_C_CONST_FUNCTION X-Git-Tag: json-c-0.14-20200419~141^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F391%2Fhead;p=thirdparty%2Fjson-c.git Fix non-GNUC define for JSON_C_CONST_FUNCTION --- diff --git a/json_object.h b/json_object.h index 758efa6f..4b7a2461 100644 --- a/json_object.h +++ b/json_object.h @@ -30,7 +30,7 @@ #ifdef __GNUC__ #define JSON_C_CONST_FUNCTION(func) func __attribute__((const)) #else -#define CONST_FUNCTION(func) func +#define JSON_C_CONST_FUNCTION(func) func #endif #if defined(_MSC_VER)