]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid compilation warning on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Mon, 12 Dec 2022 18:01:23 +0000 (20:01 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 12 Dec 2022 18:01:23 +0000 (20:01 +0200)
* src/timefns.c (sys_clock): Declare, to avoid compilation
warning.

src/timefns.c

index 9beec1ce384afde11a3cc344ef61cb0484a3bac9..dcc6403fd9d678c653a9e9a30e54d1dea83c50f2 100644 (file)
@@ -40,6 +40,10 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #include <stdio.h>
 #include <stdlib.h>
 
+#ifdef WINDOWSNT
+extern clock_t sys_clock (void);
+#endif
+
 #ifdef HAVE_TIMEZONE_T
 # include <sys/param.h>
 # if defined __NetBSD_Version__ && __NetBSD_Version__ < 700000000