From 5e88241d42b53ce8ee75a2bd1775b92972c0215c Mon Sep 17 00:00:00 2001 From: Bryant Date: Mon, 3 Feb 2014 21:09:14 -0800 Subject: [PATCH] Make sure Windows builds suport Unicode, not ASCII. Makes sure all Windows code interfaces nicely with Qt. Also required for utils and qupgrade libraries to compile. --- qgroundcontrol.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index e16dc23f70..bdaf67dc14 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -110,6 +110,10 @@ WindowsBuild { QMAKE_CXXFLAGS_DEBUG += -MP QMAKE_CXXFLAGS_RELEASE += -MP + # Specify that the Unicode versions of string functions should be used in the Windows API. + # Without this the utils and qserialport libraries crash. + DEFINES += UNICODE + # QWebkit is not needed on MS-Windows compilation environment CONFIG -= webkit -- GitLab