]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/win32con/gettimeofday.c
ncurses 6.2 - patch 20201017
[ncurses.git] / ncurses / win32con / gettimeofday.c
index 87546ceadb4c063fc7e116fee797a1fc5b19bedb..94be7b563b95da95e00f6c5da944cb166483d7e1 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
- * Copyright (c) 2008 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            *
  * authorization.                                                           *
  ****************************************************************************/
 
+#ifdef WINVER
+#  undef WINVER
+#endif
 #define WINVER 0x0501
 
 #include <curses.priv.h>
 
 #include <windows.h>
 
-MODULE_ID("$Id: gettimeofday.c,v 1.1 2008/12/07 02:07:39 juergen Exp $")
+MODULE_ID("$Id: gettimeofday.c,v 1.6 2020/07/11 21:03:53 tom Exp $")
 
 #define JAN1970 116444736000000000LL   /* the value for 01/01/1970 00:00 */
 
-int
-gettimeofday(struct timeval *tv, void *tz)
+NCURSES_EXPORT(int)
+gettimeofday(struct timeval *tv, void *tz GCC_UNUSED)
 {
     union {
        FILETIME ft;