From ec8d0c6e78a91ba026cf83cfde70301f03958cf0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 20 Aug 2016 00:10:43 +0200 Subject: [PATCH] Fix recent compilation breakage by not using INT32_MAX Apparently stdint.h doesn't define it on all platforms, even in 2016, so just hardcode 2147483647 instead. See #17629. --- src/gtk/settings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gtk/settings.cpp b/src/gtk/settings.cpp index 0dd99095c4..c1475da4a8 100644 --- a/src/gtk/settings.cpp +++ b/src/gtk/settings.cpp @@ -19,8 +19,6 @@ #include "wx/fontutil.h" #include "wx/fontenum.h" -#include - #include #include "wx/gtk/private/win_gtk.h" #include "wx/gtk/private/gtk2-compat.h" @@ -620,7 +618,7 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index, wxWindow* win ) // blinks and we handle any value that would overflow int after // multiplication in the same manner as it looks quite // unnecessary to support cursor blinking once a month. - if (timeout > 0 && timeout < INT32_MAX / 1000) + if (timeout > 0 && timeout < 2147483647 / 1000) return timeout * 1000; return -1; // no timeout, blink forever