This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
DOS EOL in multiline #define
- To: help-gcc at gnu dot org
- Subject: DOS EOL in multiline #define
- From: John Watson <jwatson at stsci dot edu>
- Date: Wed, 05 Jan 2000 17:23:03 -0500
- Newsgroups: gnu.gcc.help
- Organization: Space Telescope Science Institute, Baltimore, MD 21218
- Xref: wodc7nx0 gnu.gcc.help:2365
I am trying to compile a c program with gcc.
The c source file in in DOS format, so all the EOL's have
that extra annoying ^M. Unfortunately, gcc craps out on
multiline #defines during the compile.
Is there any way to make gcc ignore the ^M's without
converting the source file to a sane format?
I tried using
#define ^M ""
but, gcc says that the ^M character is not a valid macro name.
Thanks,
JW