Skip to content

Commit 8b9cb3e

Browse files
authored
Wrap query key separator macro with ifndef (#93)
1 parent 1d9df93 commit 8b9cb3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/core_json.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,9 @@ static bool arraySearch( const char * buf,
14351435
* @return true if a valid string was present;
14361436
* false otherwise.
14371437
*/
1438-
#define JSON_QUERY_KEY_SEPARATOR '.'
1438+
#ifndef JSON_QUERY_KEY_SEPARATOR
1439+
#define JSON_QUERY_KEY_SEPARATOR '.'
1440+
#endif
14391441
#define isSeparator_( x ) ( ( x ) == JSON_QUERY_KEY_SEPARATOR )
14401442
static bool skipQueryPart( const char * buf,
14411443
size_t * start,

0 commit comments

Comments
 (0)