forked from aniani/vim
patch 8.1.2326: cannot parse a date/time string
Problem: Cannot parse a date/time string. Solution: Add strptime(). (Stephen Wall, closes #)
This commit is contained in:
@@ -127,9 +127,16 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// 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)
|
||||
# include <time.h> /* on some systems time.h should not be
|
||||
included together with sys/time.h */
|
||||
// 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
|
||||
# include <sys/time.h>
|
||||
|
Reference in New Issue
Block a user