This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Path separator


On Tue, Jun 03, 2003 at 10:09:11AM -0700, Greg Fenton wrote:
>I am looking to enhance SWISH-E ( http://www.swish-e.org )to support
>Cygwin.  It builds and runs just fine, but internally the code takes a
>configuration parameter and if it is a shell-command, converts all of
>the "/" characters to "\".
>
>
>#ifdef _WIN32
>    make_windows_path( cmd );
>#endif
>
>and make_windows_path() blindly replaces '/' for '\'.
>
>I'd like to have one binary support both Cygwin and native Win32
>environments.  Suggestions on the "cleanest" way?

You shouldn't be defining _WIN32 for cygwin.  Cygwin gcc doesn't define
this by default.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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