aboutsummaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2014-04-01 13:09:03 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-02 18:52:16 -0300
commit6c902e21047d17655fa55864004d77e53eda4428 (patch)
treef77a201eb754a2993985e3cfe86bc598e24884a3 /src/undo.c
parent5aa1128e97632e8770965f8cffc308351fde68a8 (diff)
downloadrneovim-6c902e21047d17655fa55864004d77e53eda4428.tar.gz
rneovim-6c902e21047d17655fa55864004d77e53eda4428.tar.bz2
rneovim-6c902e21047d17655fa55864004d77e53eda4428.zip
remove HAVE_STRFTIME
strftime is a C99 standard function.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c
index 7e01408537..656b38d3cd 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -2497,7 +2497,6 @@ void ex_undolist(exarg_T *eap)
*/
static void u_add_time(char_u *buf, size_t buflen, time_t tt)
{
-#ifdef HAVE_STRFTIME
struct tm *curtime;
if (time(NULL) - tt >= 100) {
@@ -2509,7 +2508,6 @@ static void u_add_time(char_u *buf, size_t buflen, time_t tt)
/* longer ago */
(void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime);
} else
-#endif
vim_snprintf((char *)buf, buflen, _("%ld seconds ago"),
(long)(time(NULL) - tt));
}