Browse Source
Merge pull request #391 from rikardfalkeborn/fix-const-function-define
Fix non-GNUC define for JSON_C_CONST_FUNCTION
tags/json-c-0.14-20200419
Eric Haszlakiewicz
GitHub
7 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|