C
Control Freq
Hi,
Apologies if this has been discussed before.
I have inherited a large body of code which has served well for many
years in various projects.
Now, i need to use some of it in a Linux environment, compiling with
GCC.
I notice that some of the #include statements use DOS style
backslashes, and GCC complains with an error.
There are no options for GCC to be forgiving in these circumstances.
I notice that this code has compiled for years in a DOS/Windows
environment with several different toolchains.
My K+R book says that the use of back slashes in #include statements
are un-defined.
So, Should I go ahead and change the backslahes to unix style forward
slashes?
Will it break any other compiler tool chains?
Thanks in advance.
Nick
Apologies if this has been discussed before.
I have inherited a large body of code which has served well for many
years in various projects.
Now, i need to use some of it in a Linux environment, compiling with
GCC.
I notice that some of the #include statements use DOS style
backslashes, and GCC complains with an error.
There are no options for GCC to be forgiving in these circumstances.
I notice that this code has compiled for years in a DOS/Windows
environment with several different toolchains.
My K+R book says that the use of back slashes in #include statements
are un-defined.
So, Should I go ahead and change the backslahes to unix style forward
slashes?
Will it break any other compiler tool chains?
Thanks in advance.
Nick