aboutsummaryrefslogtreecommitdiffstats
path: root/src/systime.h
diff options
context:
space:
mode:
authorEli Zaretskii2014-09-24 13:06:53 +0300
committerEli Zaretskii2014-09-24 13:06:53 +0300
commitd4dfe4ea85328f7afd288cd43e141430db33e4e8 (patch)
treed3091cc82bfc7270cba859e6ea7e693a1a8391c1 /src/systime.h
parent4b930ccbb4fc4b848f318e09eddd172c2acf9b9b (diff)
downloademacs-d4dfe4ea85328f7afd288cd43e141430db33e4e8.tar.gz
emacs-d4dfe4ea85328f7afd288cd43e141430db33e4e8.zip
Fix fallout on MinGW64 from the previous commit.
src/systime.h (Time): Define as size_t, to be consistent with 64-bit Windows builds, where 'long' is a 32-bit type. src/w32inevt.h (w32_console_mouse_position): Update the argument types to use 'Time'. src/w32term.c (w32_mouse_position) (x_horizontal_scroll_bar_report_motion) (x_scroll_bar_report_motion): Update the argument types to use 'Time'.
Diffstat (limited to 'src/systime.h')
-rw-r--r--src/systime.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systime.h b/src/systime.h
index a834bce76dc..30a13d0ebcf 100644
--- a/src/systime.h
+++ b/src/systime.h
@@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19#ifndef EMACS_SYSTIME_H 19#ifndef EMACS_SYSTIME_H
20#define EMACS_SYSTIME_H 20#define EMACS_SYSTIME_H
21 21
22#include <sys/types.h>
22#include <timespec.h> 23#include <timespec.h>
23 24
24INLINE_HEADER_BEGIN 25INLINE_HEADER_BEGIN
@@ -27,7 +28,7 @@ INLINE_HEADER_BEGIN
27# ifdef HAVE_X_WINDOWS 28# ifdef HAVE_X_WINDOWS
28# include <X11/X.h> 29# include <X11/X.h>
29# else 30# else
30typedef unsigned long Time; 31typedef size_t Time;
31# endif 32# endif
32#endif 33#endif
33 34