Fix macro preprocessing for #include. Arguments enclosed in "" or <> must not
be preprocessed. See ISO/IEC 9899 1990 (E) section 6.8.2.
This commit is contained in:
10
test/val/bug2458.c
Normal file
10
test/val/bug2458.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#define str(arg) #arg
|
||||
#include str(bug2458.h) /* Ok, macro replacement */
|
||||
|
||||
#define string foo
|
||||
#include <string.h> /* Ok, no macro replacement */
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
1
test/val/bug2458.h
Normal file
1
test/val/bug2458.h
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user