diff --git a/SWIG/Source/Preprocessor/cpp.c b/SWIG/Source/Preprocessor/cpp.c index fca51f3e3..2511ea153 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -840,7 +840,7 @@ Preprocessor_parse(DOH *s) break; case 41: /* Build up the name of the preprocessor directive */ - if (isspace(c)) { + if ((isspace(c) || (!isalpha(c)))) { Clear(value); Clear(comment); if (c == '\n') {