wxWidgets: fix gcc6 build
This commit is contained in:
parent
941d381361
commit
ac8c92434d
2 changed files with 15 additions and 1 deletions
14
srcpkgs/wxWidgets/patches/fix-gcc6-disambiguate-abs.patch
Normal file
14
srcpkgs/wxWidgets/patches/fix-gcc6-disambiguate-abs.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- src/stc/scintilla/src/Editor.cxx 2014-10-06 23:33:44.000000000 +0200
|
||||
+++ src/stc/scintilla/src/Editor.cxx 2016-09-18 15:34:29.359258750 +0200
|
||||
@@ -5841,9 +5841,9 @@
|
||||
}
|
||||
|
||||
static bool Close(Point pt1, Point pt2) {
|
||||
- if (abs(pt1.x - pt2.x) > 3)
|
||||
+ if (abs(static_cast<int>(pt1.x - pt2.x)) > 3)
|
||||
return false;
|
||||
- if (abs(pt1.y - pt2.y) > 3)
|
||||
+ if (abs(static_cast<int>(pt1.y - pt2.y)) > 3)
|
||||
return false;
|
||||
return true;
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'wxWidgets'
|
||||
pkgname=wxWidgets
|
||||
version=3.0.2
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-unicode --with-opengl --with-sdl --with-libmspack
|
||||
--with-libnotify --enable-mediactrl"
|
||||
|
|
Loading…
Reference in a new issue