DOS EOL in multiline #define

John Watson jwatson@stsci.edu
Wed Jan 5 16:46:00 GMT 2000


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


More information about the Gcc-help mailing list