1 Mar 2011 03:32
Re: Relocation patch for cygwin
Charles Wilson <cygwin <at> cwilson.fastmail.fm>
2011-03-01 02:32:17 GMT
2011-03-01 02:32:17 GMT
On 2/28/2011 5:23 PM, Bruno Haible wrote:
> Thanks for the reminder. Three weeks ago, I concentrated on discussing the
> support of UCS-4 characters (still working on that). I've added minor tweaks
> (especially so as to avoid mixing the Win32 and the Cygwin approach), and
> committed this:
Thanks...
> +#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
> # define WIN32_NATIVE
> #endif
> -#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
> - /* Win32, Cygwin, OS/2, DOS */
> +#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
> + /* Win32, OS/2, DOS */
I'm confused. You told Jan, in a different thread, to be /sure/ to use
WIN32_NATIVE throughout his new code, defined as above. Yet here, you
repeat the same sequence of conditionals rather than using WIN32_NATIVE.
Why?
> +# ifdef __CYGWIN__
> + /* The executable is accessible as /proc/≤pid>/exe, at least in
> + Cygwin >= 1.5. */
> + {
> + char *link;
> +
> + link = xreadlink ("/proc/self/exe");
> + if (link != NULL)
(Continue reading)
RSS Feed