This commit is contained in:
Gorilla Sapiens
2025-05-03 02:36:44 +00:00
parent 2085646e57
commit f13f2cb619
4 changed files with 23 additions and 1 deletions

View File

@@ -2647,8 +2647,9 @@ static void DoDefine (void)
** "There shall be white-space between the identifier and the
** replacement list in the definition of an object-like macro."
** Note: C89 doesn't have this constraint.
** Note: if there is no replacement list, a space is not required.
*/
if (Std == STD_C99 && !IsSpace (CurC)) {
if (Std == STD_C99 && !IsSpace (CurC) && CurC != 0) {
PPWarning ("ISO C99 requires whitespace after the macro name");
}