xml.h: _XML_H_: macro name with an underscore is a reserved identifier - xmlpar… | |
git clone git://git.codemadness.org/xmlparser | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7789da8556c97b8a8a4f9f8577b7a2e3f7693b31 | |
parent 75b731325005b143fcc5f5945482b72eeadb4a19 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 14 May 2023 23:59:37 +0200 | |
xml.h: _XML_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 xml.h | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/xml.h b/xml.h | |
@@ -1,5 +1,5 @@ | |
-#ifndef _XML_H_ | |
-#define _XML_H_ | |
+#ifndef XML_H | |
+#define XML_H | |
#include <stdio.h> | |