aboutsummaryrefslogtreecommitdiff
path: root/tcctest.c
diff options
context:
space:
mode:
authorbellard <bellard>2004-10-28 21:13:47 +0000
committerbellard <bellard>2004-10-28 21:13:47 +0000
commitc2ec76a41f4dfa5ef0fef7f49617350c115fb45e (patch)
tree200cf85469c9ceef16b6c8596e9b67cf8095a150 /tcctest.c
parent6b52984ce49e82686c693362c46c07bf245454e7 (diff)
downloadtinycc-c2ec76a41f4dfa5ef0fef7f49617350c115fb45e.tar.gz
tinycc-c2ec76a41f4dfa5ef0fef7f49617350c115fb45e.tar.bz2
gcc 3.3 compatibility fix for multi-line string literals
Diffstat (limited to 'tcctest.c')
-rw-r--r--tcctest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcctest.c b/tcctest.c
index f1ebfac..ccb9432 100644
--- a/tcctest.c
+++ b/tcctest.c
@@ -16,6 +16,9 @@
#endif
+/* deprecated and no longer supported in gcc 3.3 */
+//#define ACCEPT_CR_IN_STRINGS
+
/* __VA_ARGS__ and __func__ support */
#define C99_MACROS
@@ -1679,6 +1682,8 @@ ntf("aaa=%d\n", 3);
pri\
\
ntf("min=%d\n", 4);
+
+#ifdef ACCEPT_CR_IN_STRINGS
printf("len1=%d\n", strlen("
"));
#ifdef CORRECT_CR_HANDLING
@@ -1688,6 +1693,7 @@ ntf("min=%d\n", 4);
#endif
printf("len1=%d\n", strlen(" a
"));
+#endif /* ACCEPT_CR_IN_STRINGS */
}
int reltab[3] = { 1, 2, 3 };