On Mi, 27 Nov 2019, Ken Takata wrote:
> How about this?
>
> diff --git a/src/vim.h b/src/vim.h
> --- a/src/vim.h
> +++ b/src/vim.h
> @@ -36,7 +36,7 @@
> Error: configure did not run properly. Check auto/config.log.
> # endif
>
> -# if defined(UNIX) && !defined(MACOS_X)
> +# if defined(__gnu_linux__) || defined(__CYGWIN__)
> // Needed for strptime(). Needs to be done early, since header files can
> // include other header files and end up including time.h, where these
> symbols
> // matter for Vim.
>
> Defining _XOPEN_SOURCE only on Linux and Cygwin might be enough?
Thanks, I am still confused whether _XOPEN_SOURCE needs to be defined
early only for Cygwin or for Cygwin and Linux. Your initial version (PR
5265) mentioned only Cygwin, so perhaps just #ifdef __CYGWIN__ would be
okay as well?
Best,
Christian
--
Diplomatie gleicht einem Boxkampf mit Glacéhandschuhen, bei dem der
Gong durch das Klingen der Sektgläser ersetzt wurde.
-- Georges Pompidou
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20191128063710.GF31092%40256bit.org.