mirror of
https://github.com/json-c/json-c.git
synced 2026-03-13 18:19:06 +08:00
Merge pull request #706 from davidjmccann/master
Check __STDC_VERSION__ is defined before checking its value
This commit is contained in:
@@ -470,7 +470,7 @@ JSON_EXPORT void json_object_object_del(struct json_object *obj, const char *key
|
||||
* @param val the local name for the json_object* object variable defined in
|
||||
* the body
|
||||
*/
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && __STDC_VERSION__ >= 199901L
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
|
||||
|
||||
#define json_object_object_foreach(obj, key, val) \
|
||||
char *key = NULL; \
|
||||
@@ -502,7 +502,7 @@ JSON_EXPORT void json_object_object_del(struct json_object *obj, const char *key
|
||||
: 0); \
|
||||
entry##key = entry_next##key)
|
||||
|
||||
#endif /* defined(__GNUC__) && !defined(__STRICT_ANSI__) && __STDC_VERSION__ >= 199901L */
|
||||
#endif /* defined(__GNUC__) && !defined(__STRICT_ANSI__) && (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) */
|
||||
|
||||
/** Iterate through all keys and values of an object (ANSI C Safe)
|
||||
* @param obj the json_object instance
|
||||
|
||||
Reference in New Issue
Block a user