X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fwin32con%2Fgettimeofday.c;h=867041f885e4b9eadf6f2e3457cdbbd471abeddf;hp=87546ceadb4c063fc7e116fee797a1fc5b19bedb;hb=6be6b9d9202ba34ee545955dc66e355d9855353a;hpb=da1f84b7eb32f17e91f6de242132ab3b2d462148 diff --git a/ncurses/win32con/gettimeofday.c b/ncurses/win32con/gettimeofday.c index 87546cea..867041f8 100644 --- a/ncurses/win32con/gettimeofday.c +++ b/ncurses/win32con/gettimeofday.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2008 Free Software Foundation, Inc. * + * Copyright (c) 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,18 +26,21 @@ * authorization. * ****************************************************************************/ +#ifdef WINVER +# undef WINVER +#endif #define WINVER 0x0501 #include #include -MODULE_ID("$Id: gettimeofday.c,v 1.1 2008/12/07 02:07:39 juergen Exp $") +MODULE_ID("$Id: gettimeofday.c,v 1.3 2014/04/26 19:41:34 juergen Exp $") #define JAN1970 116444736000000000LL /* the value for 01/01/1970 00:00 */ int -gettimeofday(struct timeval *tv, void *tz) +gettimeofday(struct timeval *tv, void *tz GCC_UNUSED) { union { FILETIME ft;