summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--preproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index f82ac44a..24fb7947 100644
--- a/preproc.c
+++ b/preproc.c
@@ -3586,7 +3586,9 @@ static bool paste_tokens(Token **head, bool handle_paste_tokens)
}
/* else fall through */
default:
- tail = paste_head = &t->next;
+ tail = &t->next;
+ if (!tok_type_(t->next, TOK_WHITESPACE))
+ paste_head = tail;
break;
}
}