History

gcc 3.3 compatibility fix for multi-line string literals

bellard committed 22 years ago

Commit c2ec76a1 parent 6b529841 file · +6 −0Browse files

Unified · Split

tcctest.c+6−0
@@ -16,6 +16,9 @@ · 15 unmodified lines
1616
1717 #endif
1818
19+/* deprecated and no longer supported in gcc 3.3 */
20+//#define ACCEPT_CR_IN_STRINGS
21+
1922 /* __VA_ARGS__ and __func__ support */
2023 #define C99_MACROS
2124
@@ -1679,6 +1682,8 @@ ntf("aaa=%d\n", 3); · 1657 unmodified lines
16791682 pri\
16801683 \
16811684 ntf("min=%d\n", 4);
1685+
1686+#ifdef ACCEPT_CR_IN_STRINGS
16821687 printf("len1=%d\n", strlen("
16831688 "));
16841689 #ifdef CORRECT_CR_HANDLING
@@ -1688,6 +1693,7 @@ ntf("min=%d\n", 4); · 3 unmodified lines
16881693 #endif
16891694 printf("len1=%d\n", strlen(" a
16901695 "));
1696+#endif /* ACCEPT_CR_IN_STRINGS */
16911697 }
16921698
16931699 int reltab[3] = { 1, 2, 3 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t