Fix build under Windows
- use ifdef instead to avoid warning
kateapp.cpp:82:5: error: "HAVE_DAEMON" is not defined, evaluates to 0 [-Werror=undef]
82 | #if HAVE_DAEMON
| ^~~~~~~~~~~
cc1plus.exe: some warnings being treated as errors
- remove unnecessary export (can cause
undefined reference to 'qMain(int, char**)'
build failed)
This patch will also be is contributed to MSYS2 repo as well: https://github.com/msys2/MINGW-packages/pull/20720
Edited by Gary Wang