changeset 333:a7b6042083f5

[project @ 2004-10-28 21:13:47 by bellard] gcc 3.3 compatibility fix for multi-line string literals
author bellard
date Thu, 28 Oct 2004 21:13:47 +0000
parents 3bd3587869d5
children b6ce0b012b60
files tcctest.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tcctest.c	Wed Oct 27 21:42:06 2004 +0000
+++ b/tcctest.c	Thu Oct 28 21:13:47 2004 +0000
@@ -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 @@
     pri\
 \
 ntf("min=%d\n", 4);
+
+#ifdef ACCEPT_CR_IN_STRINGS
     printf("len1=%d\n", strlen("
 "));
 #ifdef CORRECT_CR_HANDLING
@@ -1688,6 +1693,7 @@
 #endif
     printf("len1=%d\n", strlen("
a
 "));
+#endif /* ACCEPT_CR_IN_STRINGS */
 }
 
 int reltab[3] = { 1, 2, 3 };