summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 1af58d92..3c358284 100644
--- a/preproc.c
+++ b/preproc.c
@@ -3594,7 +3594,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;
}
}