| json.h: _JSON_H_: macro name with an underscore is a reserved identifier - json… | |
| git clone git://git.codemadness.org/json2tsv | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 8ec8c8f26da6e20e58150a5b9e611ec651445469 | |
| parent 658cf342ce46348def6651d715b404a40baadb4f | |
| Author: Hiltjo Posthuma <[email protected]> | |
| Date: Sun, 14 May 2023 23:32:19 +0200 | |
| json.h: _JSON_H_: macro name with an underscore is a reserved identifier | |
| Found with clang -Wreserved-macro-identifier | |
| See also: | |
| https://wiki.sei.cmu.edu/confluence/display/c/DCL37-C.+Do+not+declare+or+define… | |
| Diffstat: | |
| M json.h | 4 ++-- | |
| 1 file changed, 2 insertions(+), 2 deletions(-) | |
| --- | |
| diff --git a/json.h b/json.h | |
| @@ -1,5 +1,5 @@ | |
| -#ifndef _JSON_H_ | |
| -#define _JSON_H_ | |
| +#ifndef JSON_H | |
| +#define JSON_H | |
| #include <stddef.h> | |