gcc 3.3 compatibility fix for multi-line string literals
This commit is contained in:
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* deprecated and no longer supported in gcc 3.3 */
|
||||||
|
//#define ACCEPT_CR_IN_STRINGS
|
||||||
|
|
||||||
/* __VA_ARGS__ and __func__ support */
|
/* __VA_ARGS__ and __func__ support */
|
||||||
#define C99_MACROS
|
#define C99_MACROS
|
||||||
|
|
||||||
@ -1679,6 +1682,8 @@ ntf("aaa=%d\n", 3);
|
|||||||
|
|
||||||
pri\
|
pri\
|
||||||
\
|
\
|
||||||
|
ntf("min=%d\n", 4);
|
||||||
|
|
||||||
#ifdef ACCEPT_CR_IN_STRINGS
|
#ifdef ACCEPT_CR_IN_STRINGS
|
||||||
printf("len1=%d\n", strlen("
|
printf("len1=%d\n", strlen("
|
||||||
"));
|
"));
|
||||||
@ -1688,6 +1693,7 @@ ntf("min=%d\n", 4);
|
|||||||
printf("len1=%d str[0]=%d\n", strlen(str), str[0]);
|
printf("len1=%d str[0]=%d\n", strlen(str), str[0]);
|
||||||
#endif
|
#endif
|
||||||
printf("len1=%d\n", strlen("
|
printf("len1=%d\n", strlen("
|
||||||
|
a
|
||||||
"));
|
"));
|
||||||
#endif /* ACCEPT_CR_IN_STRINGS */
|
#endif /* ACCEPT_CR_IN_STRINGS */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user