diff options
| author | Eli Zaretskii | 2014-09-24 13:06:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-09-24 13:06:53 +0300 |
| commit | d4dfe4ea85328f7afd288cd43e141430db33e4e8 (patch) | |
| tree | d3091cc82bfc7270cba859e6ea7e693a1a8391c1 /src/systime.h | |
| parent | 4b930ccbb4fc4b848f318e09eddd172c2acf9b9b (diff) | |
| download | emacs-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.h | 3 |
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 | ||
| 24 | INLINE_HEADER_BEGIN | 25 | INLINE_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 |
| 30 | typedef unsigned long Time; | 31 | typedef size_t Time; |
| 31 | # endif | 32 | # endif |
| 32 | #endif | 33 | #endif |
| 33 | 34 | ||