X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Fwin32con%2Fgettimeofday.c;h=aae54c685a84bdc29673f5022e5dbdce5c054b83;hb=89730563d0a660d4ddd83d28660dc23c6d3f0bed;hp=e1ef3401de34a156a1a3345118b86fa1d3c50630;hpb=c04d54322f7835ed42e597967d8fa5471025fcac;p=ncurses.git diff --git a/ncurses/win32con/gettimeofday.c b/ncurses/win32con/gettimeofday.c index e1ef3401..aae54c68 100644 --- a/ncurses/win32con/gettimeofday.c +++ b/ncurses/win32con/gettimeofday.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2008,2010 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 2008-2010,2014 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,16 +27,23 @@ * authorization. * ****************************************************************************/ +#ifdef WINVER +# undef WINVER +#endif #define WINVER 0x0501 #include #include -MODULE_ID("$Id: gettimeofday.c,v 1.2 2010/01/16 15:18:51 tom Exp $") +MODULE_ID("$Id: gettimeofday.c,v 1.5 2020/02/29 15:46:00 anonymous.maarten Exp $") #define JAN1970 116444736000000000LL /* the value for 01/01/1970 00:00 */ +#ifdef _MSC_VER +#include +#endif + int gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) {