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 | |
| 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'.
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/systime.h | 3 | ||||
| -rw-r--r-- | src/w32inevt.h | 2 | ||||
| -rw-r--r-- | src/w32term.c | 10 |
4 files changed, 21 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8f312a3ab3e..ca0e9302578 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2014-09-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * systime.h (Time): Define as size_t, to be consistent with 64-bit | ||
| 4 | Windows builds, where 'long' is a 32-bit type. | ||
| 5 | |||
| 6 | * w32inevt.h (w32_console_mouse_position): Update the argument | ||
| 7 | types to use 'Time'. | ||
| 8 | |||
| 9 | * w32term.c (w32_mouse_position) | ||
| 10 | (x_horizontal_scroll_bar_report_motion) | ||
| 11 | (x_scroll_bar_report_motion): Update the argument types to use | ||
| 12 | 'Time'. | ||
| 13 | |||
| 1 | 2014-09-24 Dmitry Antipov <dmantipov@yandex.ru> | 14 | 2014-09-24 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 15 | ||
| 3 | * termhooks.h (enum scroll_bar_part): Begin from 0 to allow... | 16 | * termhooks.h (enum scroll_bar_part): Begin from 0 to allow... |
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 | ||
diff --git a/src/w32inevt.h b/src/w32inevt.h index 9117453e721..c4836211bc9 100644 --- a/src/w32inevt.h +++ b/src/w32inevt.h | |||
| @@ -27,6 +27,6 @@ extern void w32_console_mouse_position (struct frame **f, int insist, | |||
| 27 | Lisp_Object *bar_window, | 27 | Lisp_Object *bar_window, |
| 28 | enum scroll_bar_part *part, | 28 | enum scroll_bar_part *part, |
| 29 | Lisp_Object *x, Lisp_Object *y, | 29 | Lisp_Object *x, Lisp_Object *y, |
| 30 | unsigned long *time); | 30 | Time *time); |
| 31 | 31 | ||
| 32 | #endif /* EMACS_W32INEVT_H */ | 32 | #endif /* EMACS_W32INEVT_H */ |
diff --git a/src/w32term.c b/src/w32term.c index 0e10738e6f9..4f8482736c3 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -3344,11 +3344,11 @@ static struct scroll_bar *x_window_to_scroll_bar (Window, int); | |||
| 3344 | static void x_scroll_bar_report_motion (struct frame **, Lisp_Object *, | 3344 | static void x_scroll_bar_report_motion (struct frame **, Lisp_Object *, |
| 3345 | enum scroll_bar_part *, | 3345 | enum scroll_bar_part *, |
| 3346 | Lisp_Object *, Lisp_Object *, | 3346 | Lisp_Object *, Lisp_Object *, |
| 3347 | unsigned long *); | 3347 | Time *); |
| 3348 | static void x_horizontal_scroll_bar_report_motion (struct frame **, Lisp_Object *, | 3348 | static void x_horizontal_scroll_bar_report_motion (struct frame **, Lisp_Object *, |
| 3349 | enum scroll_bar_part *, | 3349 | enum scroll_bar_part *, |
| 3350 | Lisp_Object *, Lisp_Object *, | 3350 | Lisp_Object *, Lisp_Object *, |
| 3351 | unsigned long *); | 3351 | Time *); |
| 3352 | static void x_check_fullscreen (struct frame *); | 3352 | static void x_check_fullscreen (struct frame *); |
| 3353 | 3353 | ||
| 3354 | static void | 3354 | static void |
| @@ -3380,7 +3380,7 @@ w32_define_cursor (Window window, Cursor cursor) | |||
| 3380 | static void | 3380 | static void |
| 3381 | w32_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, | 3381 | w32_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, |
| 3382 | enum scroll_bar_part *part, Lisp_Object *x, Lisp_Object *y, | 3382 | enum scroll_bar_part *part, Lisp_Object *x, Lisp_Object *y, |
| 3383 | unsigned long *time) | 3383 | Time *time) |
| 3384 | { | 3384 | { |
| 3385 | struct frame *f1; | 3385 | struct frame *f1; |
| 3386 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (*fp); | 3386 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (*fp); |
| @@ -4374,7 +4374,7 @@ static void | |||
| 4374 | x_scroll_bar_report_motion (struct frame **fp, Lisp_Object *bar_window, | 4374 | x_scroll_bar_report_motion (struct frame **fp, Lisp_Object *bar_window, |
| 4375 | enum scroll_bar_part *part, | 4375 | enum scroll_bar_part *part, |
| 4376 | Lisp_Object *x, Lisp_Object *y, | 4376 | Lisp_Object *x, Lisp_Object *y, |
| 4377 | unsigned long *time) | 4377 | Time *time) |
| 4378 | { | 4378 | { |
| 4379 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (*fp); | 4379 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (*fp); |
| 4380 | struct scroll_bar *bar = dpyinfo->last_mouse_scroll_bar; | 4380 | struct scroll_bar *bar = dpyinfo->last_mouse_scroll_bar; |
| @@ -4424,7 +4424,7 @@ static void | |||
| 4424 | x_horizontal_scroll_bar_report_motion (struct frame **fp, Lisp_Object *bar_window, | 4424 | x_horizontal_scroll_bar_report_motion (struct frame **fp, Lisp_Object *bar_window, |
| 4425 | enum scroll_bar_part *part, | 4425 | enum scroll_bar_part *part, |
| 4426 | Lisp_Object *x, Lisp_Object *y, | 4426 | Lisp_Object *x, Lisp_Object *y, |
| 4427 | unsigned long *time) | 4427 | Time *time) |
| 4428 | { | 4428 | { |
| 4429 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (*fp); | 4429 | struct w32_display_info *dpyinfo = FRAME_DISPLAY_INFO (*fp); |
| 4430 | struct scroll_bar *bar = dpyinfo->last_mouse_scroll_bar; | 4430 | struct scroll_bar *bar = dpyinfo->last_mouse_scroll_bar; |