0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.2344: Cygwin: warning for using strptime()

Problem:    Cygwin: warning for using strptime().
Solution:   Move defining _XOPEN_SOURCE and __USE_XOPEN to vim.h. (Ken Takata,
            closes #5265)  Use 700 for _XOPEN_SOURCE for mkdtemp().
This commit is contained in:
Bram Moolenaar
2019-11-26 13:29:01 +01:00
parent 07e4a19795
commit 6a228c6463
3 changed files with 16 additions and 8 deletions

View File

@@ -129,13 +129,6 @@
// on some systems time.h should not be included together with sys/time.h
#if !defined(HAVE_SYS_TIME_H) || defined(TIME_WITH_SYS_TIME)
// Needed for strptime()
# ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE
# endif
# ifndef __USE_XOPEN
# define __USE_XOPEN
# endif
# include <time.h>
#endif
#ifdef HAVE_SYS_TIME_H