* #undef Bool with Qt4 as well as with Qt5.
* #undef min, #undef max from <X11/Xlibint.h>.
* #include <fixx11h.h> just after hotkeywrapper.hh. Unfortunately this
header can not be included in hotkeywrapper.hh directly because
some of the undef-ed words are actually used in hotkeywrapper.cc.
* #include <fixx11h.h> after <X11/Xlib.h> in mainwindow.cc just in case
hotkeywrapper.hh stops including this Xlib.h header in the future.
These changes should make future compilation errors less likely.
For example, without "#undef min" in hotkeywrapper.hh, including
<iomanip> in mainwindow.cc after the mainwindow.hh include resulted in
the following GCC 8 compilation error:
/usr/include/c++/8.2.1/bits/locale_facets_nonio.tcc:945:22:
error: expected unqualified-id before ‘(’ token
__minlen = std::min(__minlen,
^~~
Examples of code that could access the destroyed log file object:
* a destructor of a local object declared before logFile in main();
* a destructor of a global object;
* termHandler() invoked after logFile was destroyed either normally
or because of an uncaught exception.
1) Application now builds correctly for both
x86 and x86_64 architectures on Mac OS X 10.6 and 10.7
thanks to fixes in iconv.h
2) The 'unix' branch in goldendict.pro is skipped for Mac now.
3) The sluggishness of scrolling is gone after setting Qt
graphics system to "raster" at the application launch.
Signed-off-by: Denis Loginov <dinvlad@gmail.com>
To enable portable version mode, simply create the portable/ directory in the
same directory where the executable itself lives. In portable version all
dictionaries live in content/, morphologies in content/morphology. Sound
dirs aren't supported in portable version.