This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DOS EOL in multiline #define


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]